
          <!DOCTYPE html>
          <html>
            <head>
              <style type="text/css">
                #table { font-family:"Lucida Sans Unicode", "Lucida Grande", Sans-Serif;font-size:12px;text-align:left;border-collapse:collapse;margin-left:10%;margin-right:10%;margin-top:40px;margin-bottom:40px; }
                #table tr.field th {font-size:14px;font-weight:bold;background:#b9c9fe;border-top:4px solid #aabcfe;border-bottom:1px solid #fff;color:#039;padding:8px;}
                #table tr.field td {background:#e8edff;border-bottom:1px solid #fff;color:#669;border-top:1px solid transparent;padding:8px;}
                #table tr.field:hover td {background: #BCD4EC;}
                #table tr.fk td {background:#FFD494;border-bottom:1px solid #fff;color:#786549;border-top:1px solid transparent;padding:8px;}
                #table tr.fk:hover td {background:#FFBD5C;}

                table.pgtable_toc { background:#D3E6EA; font-family:"Lucida Sans Unicode", "Lucida Grande", Sans-Serif;font-size:12px;text-align:left;border-collapse:collapse;margin-left:10%;margin-right:10%;margin-top:40px;margin-bottom:40px; }
                table.pgtable_toc tr th { font-size:14px;font-weight:bold;background:#b9c9fe;border-top:4px solid #aabcfe;border-bottom:1px solid #fff;color:#039;padding:8px;}
                table.pgtable_toc tr td { border-bottom:1px solid #fff;color:#669;border-top:1px solid transparent;padding:8px;}
                table.pgtable_toc tr:hover td {background: #BCD4EC;}
              </style>
            </head>

            <body>
              <center><h1>Workgroups Database</h1></center>
              <h2>Introduction</h2>
              <p>
                The following "data dictionary" provides information about the tables and views in the "workgroup" PostgreSQL
                database of the Tableau Server repository.
                This database provides persistent storage for Tableau Server and is primarily intended to support that application.
              </p>
              <p>
                The purpose of most tables is described, along with the type and purpose of columns in the tables. Foreign key
                relations are noted in orange rows with links that take you from the table containing the foreign key to the
                primary key table. This is not an exhaustive description of all tables and fields in the database, but is
                provided here for those customers who want to query it for information about their Tableau Server usage.
                This information is provided with a caution that because the purpose of these tables and views is primarily to
                support Tableau Server, their structure and contents may change without warning and as a result, any custom
                views built from them may break.
              </p>

              <p class="note"><![CDATA[
                  ]]><strong>Note</strong>: All timestamps are in UTC time.
              </p>

              <h2>Contents</h2>
          
<h3>Tables (these are available to the "readonly" user)</h3>
<table class="pgtable_toc">
<thead><tr>
<th>Table Name</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr><td><a href="#api_tokens_anchor">api_tokens</a></td><td class="pgtable_description">Records for the api tokens</td></tr>
<tr><td><a href="#asset_key_marker_anchor">asset_key_marker</a></td><td class="pgtable_description">Records are used to flag a particular record in the asset_key_meta_data table.</td></tr>
<tr><td><a href="#asset_key_meta_data_anchor">asset_key_meta_data</a></td><td class="pgtable_description">Each record holds meta data for an asset encryption key.</td></tr>
<tr><td><a href="#asset_list_items_anchor">asset_list_items</a></td><td class="pgtable_description">Contains the individual list entries that correspond to the lists defined in the asset_lists table.</td></tr>
<tr><td><a href="#asset_lists_anchor">asset_lists</a></td><td class="pgtable_description">This table supports the creation of various types of per-user lists. The actual list contents are listed in the asset_list_items table.</td></tr>
<tr><td><a href="#async_jobs_anchor">async_jobs</a></td><td class="pgtable_description">Records information about background tasks that are run in response to some user action (as opposed to being run on some schedule).</td></tr>
<tr><td><a href="#authorizable_permission_sets_anchor">authorizable_permission_sets</a></td><td class="pgtable_description">Many-to-many mapping table between authorizables and permission sets.  An authorizable may have a permission set for every permission_set_class.</td></tr>
<tr><td><a href="#background_jobs_anchor">background_jobs</a></td><td class="pgtable_description">Records information about background tasks that are run by a Backgrounder process. These tasks are almost always run according to some schedule, but in a few cases they may also be triggered by some user actions.</td></tr>
<tr><td><a href="#background_jobs_cancel_anchor">background_jobs_cancel</a></td><td class="pgtable_description">BG jobs for which cancellation has been requested</td></tr>
<tr><td><a href="#big_texts_anchor">big_texts</a></td><td class="pgtable_description">This table serves as a convenient place to store a big text object, if necessary. It's kind of a utility table. This table is really just used for internal purposes.</td></tr>
<tr><td><a href="#capabilities_anchor">capabilities</a></td><td class="pgtable_description">Holds a relatively short list of capabilities. A user can be allowed certain capabilities either through being some sort of admin, or through owning something like a workbook or a project, or via entries in the next_gen_permissions table. Capabilities are things like read, write, export_data, publish, web_authoring, etc.</td></tr>
<tr><td><a href="#capability_roles_anchor">capability_roles</a></td><td class="pgtable_description">This table serves primarily to associate roles with capabilities. A given role can have many capabilities, and a given capability can be associated with several roles.</td></tr>
<tr><td><a href="#column_assets_anchor">column_assets</a></td><td class="pgtable_description">Each record represents a column asset that exists on Tableau Server.</td></tr>
<tr><td><a href="#comment_attachments_anchor">comment_attachments</a></td><td class="pgtable_description">Attachments for comments.</td></tr>
<tr><td><a href="#comments_anchor">comments</a></td><td class="pgtable_description">Comments users made on views.</td></tr>
<tr><td><a href="#content_sync_token_anchor">content_sync_token</a></td><td class="pgtable_description">Each record stores the checksum associated to a piece of content</td></tr>
<tr><td><a href="#customized_views_anchor">customized_views</a></td><td class="pgtable_description">When a user creates a customized view, the data that supports that goes in this table.</td></tr>
<tr><td><a href="#data_alerts_anchor">data_alerts</a></td><td class="pgtable_description">Each record represents an alert. An alert is a predefined data conditions on a view, and if conditions are met all alert recipients get notified.</td></tr>
<tr><td><a href="#data_alerts_recipients_anchor">data_alerts_recipients</a></td><td class="pgtable_description">Each record represents the intent of recipient to be notified if an event is triggered.</td></tr>
<tr><td><a href="#data_connections_anchor">data_connections</a></td><td class="pgtable_description">Describes various data sources that are included in either workbooks or datasources.</td></tr>
<tr><td><a href="#data_quality_indicators_anchor">data_quality_indicators</a></td><td class="pgtable_description">Table to store data quality indicators.</td></tr>
<tr><td><a href="#data_role_contents_association_anchor">data_role_contents_association</a></td><td class="pgtable_description">Represents the association between the data_role and other content types.</td></tr>
<tr><td><a href="#data_role_datasource_field_association_anchor">data_role_datasource_field_association</a></td><td class="pgtable_description">Represents the association between the data_role and the field on a datasource</td></tr>
<tr><td><a href="#data_roles_anchor">data_roles</a></td><td class="pgtable_description">Each record represents an entry of Semantics Service data role metadata.</td></tr>
<tr><td><a href="#database_asset_events_anchor">database_asset_events</a></td><td class="pgtable_description">Used to store database_asset events stream.</td></tr>
<tr><td><a href="#database_assets_anchor">database_assets</a></td><td class="pgtable_description">Each record represents a database that exists on Tableau Server.</td></tr>
<tr><td><a href="#datasource_events_anchor">datasource_events</a></td><td class="pgtable_description">Used to store datasource events stream.</td></tr>
<tr><td><a href="#datasource_fields_anchor">datasource_fields</a></td><td class="pgtable_description">Describes datasource fields.</td></tr>
<tr><td><a href="#datasource_metrics_aggregations_anchor">datasource_metrics_aggregations</a></td><td class="pgtable_description">Each record represents a partial aggregation of analytics for a given datasource in a given time interval.  It is often necessary to sum across multiple rows to find a total for a given time interval.</td></tr>
<tr><td><a href="#datasource_refresh_properties_anchor">datasource_refresh_properties</a></td><td class="pgtable_description">Extension of datasources table for refresh properties (Online). This is 1-0/1 relationship to datasources table. It is
 a separate table since it contains Online-specific properties.</td></tr>
<tr><td><a href="#datasource_versions_anchor">datasource_versions</a></td><td class="pgtable_description">Datasource versions saved on server.</td></tr>
<tr><td><a href="#datasources_anchor">datasources</a></td><td class="pgtable_description">Records all Published datasources on server.</td></tr>
<tr><td><a href="#desktop_reporting_anchor">desktop_reporting</a></td><td class="pgtable_description">Each record represents a Tableau Desktop usage report.</td></tr>
<tr><td><a href="#domains_anchor">domains</a></td><td class="pgtable_description">Records represent either an Active Directory domain or an authenticate system.</td></tr>
<tr><td><a href="#dynamic_configs_anchor">dynamic_configs</a></td><td class="pgtable_description">Used for dynamic application configuration.</td></tr>
<tr><td><a href="#extensions_block_list_anchor">extensions_block_list</a></td><td class="pgtable_description">Table which stores the block list of extensions on this server</td></tr>
<tr><td><a href="#extensions_events_anchor">extensions_events</a></td><td class="pgtable_description">Table which stores the events of referenced extensions calculation service</td></tr>
<tr><td><a href="#extensions_instances_anchor">extensions_instances</a></td><td class="pgtable_description">Table which stores referenced extensions information calculated from across the workbooks.</td></tr>
<tr><td><a href="#extensions_metadata_anchor">extensions_metadata</a></td><td class="pgtable_description">Table which stores Metadata of Extensions.</td></tr>
<tr><td><a href="#extensions_safe_list_anchor">extensions_safe_list</a></td><td class="pgtable_description">Table which stores safe list of extensions that are configured for a given site.</td></tr>
<tr><td><a href="#extensions_site_settings_anchor">extensions_site_settings</a></td><td class="pgtable_description">Table which stores the site specific settings for extensions</td></tr>
<tr><td><a href="#external_service_connections_anchor">external_service_connections</a></td><td class="pgtable_description">Table which stores the site specific settings for external service connections</td></tr>
<tr><td><a href="#external_service_site_settings_anchor">external_service_site_settings</a></td><td class="pgtable_description">Table which stores the site level settings for external services</td></tr>
<tr><td><a href="#extract_sessions_anchor">extract_sessions</a></td><td class="pgtable_description">Extracts that have active vizql sessions.</td></tr>
<tr><td><a href="#extracts_anchor">extracts</a></td><td class="pgtable_description">Each record corresponds to a directory that contains one or more extract files associated with either a workbook or datasource.</td></tr>
<tr><td><a href="#field_indexability_anchor">field_indexability</a></td><td class="pgtable_description">The user-defined NLP indexability rules for fields in datasources</td></tr>
<tr><td><a href="#flow_events_anchor">flow_events</a></td><td class="pgtable_description">Each row represents an event affecting a flow</td></tr>
<tr><td><a href="#flow_input_steps_anchor">flow_input_steps</a></td><td class="pgtable_description">Each record represents an individual input step from a published Tableau Prep flow.</td></tr>
<tr><td><a href="#flow_models_anchor">flow_models</a></td><td class="pgtable_description">Each row contains model metadata for a flow</td></tr>
<tr><td><a href="#flow_output_step_runs_anchor">flow_output_step_runs</a></td><td class="pgtable_description">Each record represents a run of an output step of a flow.  See flow_runs for per-flow run history.</td></tr>
<tr><td><a href="#flow_output_steps_anchor">flow_output_steps</a></td><td class="pgtable_description">Each record represents an individual output step from a published Maestro flow.</td></tr>
<tr><td><a href="#flow_run_errors_anchor">flow_run_errors</a></td><td class="pgtable_description">Each record represents an individual flow run error which has detailed information about the error</td></tr>
<tr><td><a href="#flow_run_spec_output_steps_anchor">flow_run_spec_output_steps</a></td><td class="pgtable_description">Each record represents an individual output step in a flow run specification.</td></tr>
<tr><td><a href="#flow_run_specs_anchor">flow_run_specs</a></td><td class="pgtable_description">Each record represents an individual specification about how a Tableau Prep flow should be run</td></tr>
<tr><td><a href="#flow_runs_anchor">flow_runs</a></td><td class="pgtable_description">Each record represents a run of a flow.  See flow_output_step_runs for per-output-step run history.</td></tr>
<tr><td><a href="#flow_runtime_owners_anchor">flow_runtime_owners</a></td><td class="pgtable_description">Table to keep track of flow/flow output step owner at flow run time. Used to calculate derived permission on flow outputs.</td></tr>
<tr><td><a href="#flow_versions_anchor">flow_versions</a></td><td class="pgtable_description">flow versions saved on server.</td></tr>
<tr><td><a href="#flows_anchor">flows</a></td><td class="pgtable_description">Each record represents a Tableau Prep flow that exists on Tableau Server.</td></tr>
<tr><td><a href="#geocoding_anchor">geocoding</a></td><td class="pgtable_description">Information about geocoding databases.</td></tr>
<tr><td><a href="#group_users_anchor">group_users</a></td><td class="pgtable_description">Serves as a many to many linking mechanism between users and groups. A user can belong to multiple groups, and a group can contain multiple users.</td></tr>
<tr><td><a href="#groups_anchor">groups</a></td><td class="pgtable_description">A grouping of users. Can be locally created or imported from Active Directory.</td></tr>
<tr><td><a href="#hist_capabilities_anchor">hist_capabilities</a></td><td class="pgtable_description">Records the most useful information about a capability that was relevant at the time of the event (see capabilities table).</td></tr>
<tr><td><a href="#hist_column_assets_anchor">hist_column_assets</a></td><td class="pgtable_description">Records the most useful information about a column that was relevant at the time of the event (see column_assets table).</td></tr>
<tr><td><a href="#hist_comments_anchor">hist_comments</a></td><td class="pgtable_description">Records the most useful information about a comment that was relevant at the time of the event (see comments table).</td></tr>
<tr><td><a href="#hist_configs_anchor">hist_configs</a></td><td class="pgtable_description">Can be used to record information about configuration that was in effect at the time of the historical event.</td></tr>
<tr><td><a href="#hist_data_connections_anchor">hist_data_connections</a></td><td class="pgtable_description">Records the most useful information about a data connection that was relevant at the time of the event (see data_connections table).</td></tr>
<tr><td><a href="#hist_data_roles_anchor">hist_data_roles</a></td><td class="pgtable_description">Records the most useful information about a data role that was relevant at the time of the event (see data_roles table).</td></tr>
<tr><td><a href="#hist_database_assets_anchor">hist_database_assets</a></td><td class="pgtable_description">Records the most useful information about a database that was relevant at the time of the event (see database_assets table).</td></tr>
<tr><td><a href="#hist_datasources_anchor">hist_datasources</a></td><td class="pgtable_description">Records the most useful information about a data source that was relevant at the time of the event (see datasources table).</td></tr>
<tr><td><a href="#hist_flows_anchor">hist_flows</a></td><td class="pgtable_description">Records the most useful information about a flow that was relevant at the time of the event (see flows table).</td></tr>
<tr><td><a href="#hist_groups_anchor">hist_groups</a></td><td class="pgtable_description">Records the most useful information about a group that was relevant at the time of the event (see groups table).</td></tr>
<tr><td><a href="#hist_licensing_roles_anchor">hist_licensing_roles</a></td><td class="pgtable_description">Records the most useful information about a licensing role that was relevant at the time of the event (see licensing_roles table).</td></tr>
<tr><td><a href="#hist_metrics_anchor">hist_metrics</a></td><td class="pgtable_description">Records the most useful information about a metric that was relevant at the time of the event (see metrics table).</td></tr>
<tr><td><a href="#hist_projects_anchor">hist_projects</a></td><td class="pgtable_description">Records the most useful information about a project that was relevant at the time of the event (see projects table).</td></tr>
<tr><td><a href="#hist_remote_agents_anchor">hist_remote_agents</a></td><td class="pgtable_description">Records the most useful information about a remote agent that was relevant at the time of the event.</td></tr>
<tr><td><a href="#hist_schedules_anchor">hist_schedules</a></td><td class="pgtable_description">Records the most useful information about a schedule that was relevant at the time of the event (see schedules table).</td></tr>
<tr><td><a href="#hist_sites_anchor">hist_sites</a></td><td class="pgtable_description">Records the most useful information about a site that was relevant at the time of the event (see sites table).</td></tr>
<tr><td><a href="#hist_table_assets_anchor">hist_table_assets</a></td><td class="pgtable_description">Records the most useful information about a table that was relevant at the time of the event (see table_assets table).</td></tr>
<tr><td><a href="#hist_tags_anchor">hist_tags</a></td><td class="pgtable_description">Records the most useful information about a tag that was relevant at the time of the event (see tags table).</td></tr>
<tr><td><a href="#hist_tasks_anchor">hist_tasks</a></td><td class="pgtable_description">Records the most useful information about a task that was relevant at the time of the event (see tasks table).</td></tr>
<tr><td><a href="#hist_users_anchor">hist_users</a></td><td class="pgtable_description">Records the most useful information about a user and corresponding system_user that was relevant at the time of the event (see users and system_users tables).</td></tr>
<tr><td><a href="#hist_views_anchor">hist_views</a></td><td class="pgtable_description">Records the most useful information about a view that was relevant at the time of the event (see views table).</td></tr>
<tr><td><a href="#hist_workbooks_anchor">hist_workbooks</a></td><td class="pgtable_description">Records the most useful information about a workbook that was relevant at the time of the event (see workbooks table).</td></tr>
<tr><td><a href="#historical_disk_usage_anchor">historical_disk_usage</a></td><td class="pgtable_description">Records historical disk utilization by Tableau Server for storage monitoring.</td></tr>
<tr><td><a href="#historical_event_types_anchor">historical_event_types</a></td><td class="pgtable_description">The types of historical events which can be recorded.</td></tr>
<tr><td><a href="#historical_events_anchor">historical_events</a></td><td class="pgtable_description">This table is the heart of the cluster of tables devoted to historical event auditing. For each event, a record is created on this table. The type of event is indicated through historical_event_type_id, which links to the historical_event_types table. Other information relevant to the event is linked through some of the other id fields in this table.  Note these links go to other hist* tables, which allows the event to refer to things that might have since been deleted from the regular tables.</td></tr>
<tr><td><a href="#http_requests_anchor">http_requests</a></td><td class="pgtable_description">Each record represents a request received by Tableau Server.</td></tr>
<tr><td><a href="#id__ad_identity_stores_anchor">id__ad_identity_stores</a></td><td class="pgtable_description">Identities for Active Directory identity stores.</td></tr>
<tr><td><a href="#id__identity_store_instances_anchor">id__identity_store_instances</a></td><td class="pgtable_description">Instances of identity stores.</td></tr>
<tr><td><a href="#id__identity_store_types_anchor">id__identity_store_types</a></td><td class="pgtable_description">Types of identity stores.</td></tr>
<tr><td><a href="#id__ldap_identity_stores_anchor">id__ldap_identity_stores</a></td><td class="pgtable_description">Identities for LDAP identity stores.</td></tr>
<tr><td><a href="#id__local_identity_stores_anchor">id__local_identity_stores</a></td><td class="pgtable_description">Identities for Local identity stores.</td></tr>
<tr><td><a href="#identity_based_activation_reporting_anchor">identity_based_activation_reporting</a></td><td class="pgtable_description">Login-based License Management (LBLM) -  NOTE: For any custom vizzes or reporting, it is recommended instead to use the View identity_based_activation_admin_view.  In this table each row contains important dates with regard to ATR Issuing and Login-based License Usage for a given User, Site, Device and Product combination.</td></tr>
<tr><td><a href="#identity_based_activation_user_role_change_anchor">identity_based_activation_user_role_change</a></td><td class="pgtable_description">Login-based License Management (LBLM) -  NOTE: For any custom vizzes or reporting, it is recommended instead to use the View identity_based_activation_admin_view.  This table tracks site role creator changes for each given user on a given site.</td></tr>
<tr><td><a href="#language_prefs_anchor">language_prefs</a></td><td class="pgtable_description">Contains a listing of information about languages for which Tableau Server has been localized.</td></tr>
<tr><td><a href="#licensing_roles_anchor">licensing_roles</a></td><td class="pgtable_description">Lists the various possible licensing scenarios.  (Unlicensed, Guest, Viewer, or Interactor).</td></tr>
<tr><td><a href="#local_names_anchor">local_names</a></td><td class="pgtable_description">Contains translations of certain words or phrases that are relevant to some Tableau Server database constructs.</td></tr>
<tr><td><a href="#materialize_views_job_sos_directory_anchor">materialize_views_job_sos_directory</a></td><td class="pgtable_description">Each row in the table is a mapping of a workbook id and revision in a materialize views job to the sos directories that the job requires.</td></tr>
<tr><td><a href="#materialized_views_anchor">materialized_views</a></td><td class="pgtable_description">This table stores the materialized views for queries in workbooks.</td></tr>
<tr><td><a href="#materialized_views_bloom_filters_anchor">materialized_views_bloom_filters</a></td><td class="pgtable_description">This table stores the bloom filters indicating materialized sites/workbooks.</td></tr>
<tr><td><a href="#materialized_views_connections_anchor">materialized_views_connections</a></td><td class="pgtable_description">This table stores the information required to fetch materialized views files from the server where they are stored.</td></tr>
<tr><td><a href="#materialized_views_metadata_anchor">materialized_views_metadata</a></td><td class="pgtable_description">This table stores the metadata for the materialized view service.</td></tr>
<tr><td><a href="#materialized_views_object_status_anchor">materialized_views_object_status</a></td><td class="pgtable_description">This table stores the materialized views state configuration for objects for which the feature is enabled.</td></tr>
<tr><td><a href="#mentions_anchor">mentions</a></td><td class="pgtable_description">Mentions for comments.</td></tr>
<tr><td><a href="#metric_metrics_aggregations_anchor">metric_metrics_aggregations</a></td><td class="pgtable_description">Each record represents a partial aggregation of analytics for a given metric in a given time interval.  It is often necessary to sum across multiple rows to find a total for a given time interval.</td></tr>
<tr><td><a href="#metrics_anchor">metrics</a></td><td class="pgtable_description">Each record represents a Metric.</td></tr>
<tr><td><a href="#metrics_definition_anchor">metrics_definition</a></td><td class="pgtable_description">Each record represents a metrics definition.</td></tr>
<tr><td><a href="#metrics_snapshot_anchor">metrics_snapshot</a></td><td class="pgtable_description">Each record represents a metrics snapshot.</td></tr>
<tr><td><a href="#metrics_snapshot_delta_anchor">metrics_snapshot_delta</a></td><td class="pgtable_description">Each record represents a metrics snapshot delta.</td></tr>
<tr><td><a href="#metrics_view_anchor">metrics_view</a></td><td class="pgtable_description">Each record represents a metrics view.</td></tr>
<tr><td><a href="#mobile_enrollments_anchor">mobile_enrollments</a></td><td class="pgtable_description">Keeps track of most recent time a user has been enrolled for a mobile device. User will typically be enrolled onto server by logging into server through the mobile client. A user may be enrolled under multiple devices if the devices have different attributes (pixel width, pixel height, pixel ratio)</td></tr>
<tr><td><a href="#most_recent_refreshes_anchor">most_recent_refreshes</a></td><td class="pgtable_description">most recent refresh data for alerts</td></tr>
<tr><td><a href="#most_recent_subscription_runs_anchor">most_recent_subscription_runs</a></td><td class="pgtable_description">most recent subscription runs data for suspend subscriptions</td></tr>
<tr><td><a href="#mru_list_entries_anchor">mru_list_entries</a></td><td class="pgtable_description">Holds most recently used list entries. The records here are linked to the lists to which they belong. Those lists are defined in the mru_lists table.</td></tr>
<tr><td><a href="#mru_lists_anchor">mru_lists</a></td><td class="pgtable_description">Most recently used lists by user. The actual list contents are in the mru_list_entries table.</td></tr>
<tr><td><a href="#next_gen_permissions_anchor">next_gen_permissions</a></td><td class="pgtable_description">This table provides a flexible means of describing which users and groups have been granted which capabilities, on which things. Be aware that permissions is a complex topic and that this table does not contain all relevant information about permissions. For example, some permissions are given, automatically, to owners of workbooks or projects.</td></tr>
<tr><td><a href="#nlp_suggested_questions_anchor">nlp_suggested_questions</a></td><td class="pgtable_description">Suggested questions</td></tr>
<tr><td><a href="#nlp_suggestion_groups_anchor">nlp_suggestion_groups</a></td><td class="pgtable_description">Suggested question groups</td></tr>
<tr><td><a href="#oauth_request_tokens_anchor">oauth_request_tokens</a></td><td class="pgtable_description">Table of tokens used for OAuth authorization requests.</td></tr>
<tr><td><a href="#password_tokens_anchor">password_tokens</a></td><td class="pgtable_description">Tokens issued to client through link in email which can be redeemed to change their password</td></tr>
<tr><td><a href="#pdf_subscription_options_anchor">pdf_subscription_options</a></td><td class="pgtable_description">Used to store different PDF layout options.</td></tr>
<tr><td><a href="#pending_search_update_items_anchor">pending_search_update_items</a></td><td class="pgtable_description">This table represents an item that is associated with a pending_search_update.</td></tr>
<tr><td><a href="#permission_reasons_anchor">permission_reasons</a></td><td class="pgtable_description">When calculating effective permissions in the perm_users_*_capabilities functions, this table maps the integer precedence of the effective permission rule to the varchar effective permission reason.  The integer precedence is internal to the stored procedures.  The effective permission reason is returned to callers.</td></tr>
<tr><td><a href="#permission_set_classes_anchor">permission_set_classes</a></td><td class="pgtable_description">Represents a class of permission sets.  Generally 1-to-1 with capabilities.</td></tr>
<tr><td><a href="#permission_set_items_anchor">permission_set_items</a></td><td class="pgtable_description">Represents a single next_gen_permission in a permission_set.  The columns mirror the next_gen_permissions table.</td></tr>
<tr><td><a href="#permission_sets_anchor">permission_sets</a></td><td class="pgtable_description">Represents a common set of permissions used by multiple authorizables.</td></tr>
<tr><td><a href="#permissions_templates_anchor">permissions_templates</a></td><td class="pgtable_description">This table provides a flexible means of describing which users and groups will be granted which capabilities by default, on non-overwrite publishes of workbooks and datasources. Be aware that permissions is a complex topic and that this table does not contain all relevant information about permissions. For example, some permissions are given, automatically, to owners of workbooks or projects.</td></tr>
<tr><td><a href="#pkce_tokens_anchor">pkce_tokens</a></td><td class="pgtable_description">Proof Key for Credential Exchange (RFC 7636) short-lived storage.</td></tr>
<tr><td><a href="#projects_anchor">projects</a></td><td class="pgtable_description">Each row of the table corresponds to a project on Tableau Server.</td></tr>
<tr><td><a href="#published_connections_anchor">published_connections</a></td><td class="pgtable_description">Each record represents a Published Connection.</td></tr>
<tr><td><a href="#queue_time_average_anchor">queue_time_average</a></td><td class="pgtable_description">Average queue time of jobs within interval of configured length in minutes, for day of the week and each job type.</td></tr>
<tr><td><a href="#recommendations_dismissed_views_anchor">recommendations_dismissed_views</a></td><td class="pgtable_description">Views dismissed by user in context of viz recommendations</td></tr>
<tr><td><a href="#recycle_bin_content_types_anchor">recycle_bin_content_types</a></td><td class="pgtable_description">Content Type lookup table for Recycle Bin.</td></tr>
<tr><td><a href="#recycle_bin_contents_anchor">recycle_bin_contents</a></td><td class="pgtable_description">Table storing all items in the Recycle Bin.</td></tr>
<tr><td><a href="#refresh_token_devices_anchor">refresh_token_devices</a></td><td class="pgtable_description">Devices that have been issued at least one refresh token</td></tr>
<tr><td><a href="#refresh_tokens_anchor">refresh_tokens</a></td><td class="pgtable_description">Tokens issued to clients which can be redeemed by the client for access to the server</td></tr>
<tr><td><a href="#remote_agents_anchor">remote_agents</a></td><td class="pgtable_description">Registry of remote agents (Online). Remote agents are programs installed on customer PC and executing tasks
 on a behalf of a customer. The first example of agent is Tableau Data Sync. It is running in background on
 customer desktop and performing automatic data source refreshes based on schedules defined by customers.</td></tr>
<tr><td><a href="#repository_data_anchor">repository_data</a></td><td class="pgtable_description">This table forms the link between other tables that need to store "large object" data, and the large object storage, itself.</td></tr>
<tr><td><a href="#resource_holder_types_anchor">resource_holder_types</a></td><td class="pgtable_description">Information about entities which can hold on to resources. For instance workbook is such an entity, it can reference a geocoding database and keep it alive.</td></tr>
<tr><td><a href="#resource_types_anchor">resource_types</a></td><td class="pgtable_description">Information about resources which are used by some server entities. For instance geocoding databases are such resources, a workbook can reference a geocoding database and keep it alive.</td></tr>
<tr><td><a href="#resource_usage_anchor">resource_usage</a></td><td class="pgtable_description">Information about resources by tableau server entities, for example which geocoding databases are used by which workbooks.</td></tr>
<tr><td><a href="#roles_anchor">roles</a></td><td class="pgtable_description">This table contains records corresponding to various classifications of users. It should really be viewed in conjuction with the capabilities and capability_roles tables. Taken together, these tables associate different roles with different sets of capabilities. The capabilities sets serve as templates when creating content.</td></tr>
<tr><td><a href="#schedules_anchor">schedules</a></td><td class="pgtable_description">Records in this table define a schedule according to which certain regular tasks may be performed (see tasks table). They also indicate the next time at which the schedule will be triggered.</td></tr>
<tr><td><a href="#schema_migrations_anchor">schema_migrations</a></td><td class="pgtable_description">This table tracks which database migrations have been applied to this database.</td></tr>
<tr><td><a href="#semantics_service_data_source_events_anchor">semantics_service_data_source_events</a></td><td class="pgtable_description">Stores the last data source event processed by semantics service</td></tr>
<tr><td><a href="#serial_collections_anchor">serial_collections</a></td><td class="pgtable_description">Records in this table represent groups of background jobs that should not be run simultaneously. </td></tr>
<tr><td><a href="#server_scoped_metadata_node_properties_anchor">server_scoped_metadata_node_properties</a></td><td class="pgtable_description">Table to store properties of a node.</td></tr>
<tr><td><a href="#sessions_anchor">sessions</a></td><td class="pgtable_description">Settings associated with a user's browser session.</td></tr>
<tr><td><a href="#sheet_images_anchor">sheet_images</a></td><td class="pgtable_description">Serves as a cache for all the sheet images generated by server.</td></tr>
<tr><td><a href="#site_logos_anchor">site_logos</a></td><td class="pgtable_description">custom logo image metadata for sites</td></tr>
<tr><td><a href="#site_oidc_configurations_anchor">site_oidc_configurations</a></td><td class="pgtable_description">Defines the OpenID Connect IdP associated with a site.</td></tr>
<tr><td><a href="#site_roles_anchor">site_roles</a></td><td class="pgtable_description">Lists the various possible user site roles.</td></tr>
<tr><td><a href="#site_saml_configurations_anchor">site_saml_configurations</a></td><td class="pgtable_description">Defines the SAML IdP associated with a site.</td></tr>
<tr><td><a href="#site_saml_events_anchor">site_saml_events</a></td><td class="pgtable_description">Log table for all SAML actions.</td></tr>
<tr><td><a href="#site_saml_sessions_anchor">site_saml_sessions</a></td><td class="pgtable_description">Records the user sessions authenticated by the SiteSAML service.</td></tr>
<tr><td><a href="#site_saml_users_anchor">site_saml_users</a></td><td class="pgtable_description">Users that are allowed to use Per Site SAML authentication.</td></tr>
<tr><td><a href="#site_scoped_metadata_node_properties_anchor">site_scoped_metadata_node_properties</a></td><td class="pgtable_description">Table to store properties of a node.</td></tr>
<tr><td><a href="#site_user_prefs_anchor">site_user_prefs</a></td><td class="pgtable_description">Site user preferences.</td></tr>
<tr><td><a href="#sites_anchor">sites</a></td><td class="pgtable_description">Each record represents a site. Each site holds its own workbooks, datasources, users, etc. Strict isolation between the contents of each site is maintained.</td></tr>
<tr><td><a href="#sos_blob_data_anchor">sos_blob_data</a></td><td class="pgtable_description">table to store sos file types as binary data</td></tr>
<tr><td><a href="#ss_custom_value_concepts_anchor">ss_custom_value_concepts</a></td><td class="pgtable_description">The table to hold value concepts used by semantics service</td></tr>
<tr><td><a href="#ss_field_concepts_anchor">ss_field_concepts</a></td><td class="pgtable_description">The table to hold field concepts used by semantics service</td></tr>
<tr><td><a href="#ss_object_concepts_anchor">ss_object_concepts</a></td><td class="pgtable_description">The table to hold object concepts used by semantics service</td></tr>
<tr><td><a href="#ss_ontologies_anchor">ss_ontologies</a></td><td class="pgtable_description">The table to hold ontologies used by semantics service</td></tr>
<tr><td><a href="#subscription_messages_anchor">subscription_messages</a></td><td class="pgtable_description">This table represent a subscription email message.</td></tr>
<tr><td><a href="#subscriptions_anchor">subscriptions</a></td><td class="pgtable_description">Each record represents a subscription.</td></tr>
<tr><td><a href="#subscriptions_customized_views_anchor">subscriptions_customized_views</a></td><td class="pgtable_description">This table is used to link various customized views to the subscriptions in which those customized views must be generated and emailed.</td></tr>
<tr><td><a href="#subscriptions_views_anchor">subscriptions_views</a></td><td class="pgtable_description">This table is used to link various views to the subscriptions in which those views must be generated and emailed.</td></tr>
<tr><td><a href="#subscriptions_workbooks_anchor">subscriptions_workbooks</a></td><td class="pgtable_description">This table is used to link various workbooks to the subscriptions in which those workbooks must have views generated and emailed.</td></tr>
<tr><td><a href="#synonyms_anchor">synonyms</a></td><td class="pgtable_description">The table to hold the synonyms for fields of datasources</td></tr>
<tr><td><a href="#system_user_identities_anchor">system_user_identities</a></td><td class="pgtable_description">Identity to SystemUser mappings.</td></tr>
<tr><td><a href="#system_user_migration_conflicts_anchor">system_user_migration_conflicts</a></td><td class="pgtable_description">Conflicts when migrating system_user identities.</td></tr>
<tr><td><a href="#system_user_migration_conflicts_identity_data_anchor">system_user_migration_conflicts_identity_data</a></td><td class="pgtable_description">Identity information related to ambiguous results when migrating system_user identities.</td></tr>
<tr><td><a href="#system_users_anchor">system_users</a></td><td class="pgtable_description">Each record represents a user of the server. These records correspond to login identity. A single system_user may potentially be able to login to multiple sites. The linkage between a system_user and their allowed sites is defined through the "users" table.</td></tr>
<tr><td><a href="#table_asset_events_anchor">table_asset_events</a></td><td class="pgtable_description">Used to store table_asset events stream.</td></tr>
<tr><td><a href="#table_asset_sources_anchor">table_asset_sources</a></td><td class="pgtable_description">Used to store mappings between tables and their source.</td></tr>
<tr><td><a href="#table_assets_anchor">table_assets</a></td><td class="pgtable_description">Each record represents a table asset that exists on Tableau Server.</td></tr>
<tr><td><a href="#taggings_anchor">taggings</a></td><td class="pgtable_description">Associates tags with taggable items.</td></tr>
<tr><td><a href="#tags_anchor">tags</a></td><td class="pgtable_description">Each tag is a string value. A given tag can be associated with many taggable items in a site.</td></tr>
<tr><td><a href="#tasks_anchor">tasks</a></td><td class="pgtable_description">Serves to connect schedules with background tasks that should be run on that schedule. The schedule is defined in the schedules table, while the task is defined by type.</td></tr>
<tr><td><a href="#tds_datasource_model_fields_anchor">tds_datasource_model_fields</a></td><td class="pgtable_description">Fields of datasource models.</td></tr>
<tr><td><a href="#tds_datasource_models_anchor">tds_datasource_models</a></td><td class="pgtable_description">Model of the datasource.</td></tr>
<tr><td><a href="#trusted_tickets_anchor">trusted_tickets</a></td><td class="pgtable_description">This table lists trusted tickets that have been created.  Tickets that are redeemed are deleted once used, hence can only be used once.  Tickets that are never redeemed become invalid after the time given by "expires_at" and are eventually deleted from the table automatically.</td></tr>
<tr><td><a href="#user_default_customized_views_anchor">user_default_customized_views</a></td><td class="pgtable_description">Defines what customized view a user should see for a given view, by default.</td></tr>
<tr><td><a href="#user_images_anchor">user_images</a></td><td class="pgtable_description">Represents images for each associated system user.</td></tr>
<tr><td><a href="#user_notification_recipients_anchor">user_notification_recipients</a></td><td class="pgtable_description">Holds metadata for all user notification recipients on the server.</td></tr>
<tr><td><a href="#user_notifications_anchor">user_notifications</a></td><td class="pgtable_description">Holds metadata for all user notifications on the server.</td></tr>
<tr><td><a href="#user_onboardings_anchor">user_onboardings</a></td><td class="pgtable_description">This table stores onboarding information for tableau features based on system user ids</td></tr>
<tr><td><a href="#user_prefs_anchor">user_prefs</a></td><td class="pgtable_description">Contains a variety of preferences for the various system users.</td></tr>
<tr><td><a href="#users_anchor">users</a></td><td class="pgtable_description">Each record links a system_users record to a site. The user's site specific settings are captured here.</td></tr>
<tr><td><a href="#value_synonyms_anchor">value_synonyms</a></td><td class="pgtable_description">The user defined synonyms associated with values of fields in datasources</td></tr>
<tr><td><a href="#view_metrics_aggregations_anchor">view_metrics_aggregations</a></td><td class="pgtable_description">Each record represents a partial aggregation of analytics for a given view in a given time interval.  It is often necessary to sum across multiple rows to find a total for a given time interval.</td></tr>
<tr><td><a href="#views_anchor">views</a></td><td class="pgtable_description">Each records represents a view in a workbook.</td></tr>
<tr><td><a href="#views_stats_anchor">views_stats</a></td><td class="pgtable_description">This table is used to track how many times each user has accessed different views.</td></tr>
<tr><td><a href="#viz_snapshots_anchor">viz_snapshots</a></td><td class="pgtable_description">This table represents a snapshots of viz.</td></tr>
<tr><td><a href="#viz_states_anchor">viz_states</a></td><td class="pgtable_description">This table represents a snapshot of the state of a viz.</td></tr>
<tr><td><a href="#webhooks_anchor">webhooks</a></td><td class="pgtable_description">Holds metadata for all registered webhooks on the server.</td></tr>
<tr><td><a href="#workbook_checksums_anchor">workbook_checksums</a></td><td class="pgtable_description">This table provides a set of checksums associated with a workbook which can be used to validate existence of a workbook based on its checksum.</td></tr>
<tr><td><a href="#workbook_events_anchor">workbook_events</a></td><td class="pgtable_description">Used to store workbook events stream.</td></tr>
<tr><td><a href="#workbook_exports_anchor">workbook_exports</a></td><td class="pgtable_description">Each row in the table corresponds to a cached pdf file.</td></tr>
<tr><td><a href="#workbook_versions_anchor">workbook_versions</a></td><td class="pgtable_description">Workbook versions saved on server.</td></tr>
<tr><td><a href="#workbooks_anchor">workbooks</a></td><td class="pgtable_description">Each record represents a workbook that exists on the server.</td></tr>
</tbody>
</table>
<h3>Views (these are available to both the "tableau" and the "readonly" users)</h3>
<table class="pgtable_toc">
<thead><tr>
<th>View Name</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr><td><a href="#_background_tasks_anchor">_background_tasks</a></td><td class="pgtable_description">This view combines the important contents of both the background_jobs table and the async_jobs table to give an overall picture of jobs that were given to a backgrounder process.</td></tr>
<tr><td><a href="#_comments_anchor">_comments</a></td><td class="pgtable_description">Comments users made on views.</td></tr>
<tr><td><a href="#_customized_views_anchor">_customized_views</a></td><td class="pgtable_description">When a user creates a customized view, the data that supports that goes in the customized_views table, and is reflected in this view.</td></tr>
<tr><td><a href="#_datasources_anchor">_datasources</a></td><td class="pgtable_description">Shows all Published datasources on server, along with some associated information.</td></tr>
<tr><td><a href="#_datasources_stats_anchor">_datasources_stats</a></td><td class="pgtable_description">Some historical useage information about datasources.  Based on the records that exist in the historical events tables.</td></tr>
<tr><td><a href="#_groups_anchor">_groups</a></td><td class="pgtable_description">A grouping of users. Can be locally created or imported from Active Directory.  Reflects the contents of the groups table and associated tables.</td></tr>
<tr><td><a href="#_http_requests_anchor">_http_requests</a></td><td class="pgtable_description">Each record represents a request received by Tableau Server.  Reflects data in the http_requests table.</td></tr>
<tr><td><a href="#_projects_anchor">_projects</a></td><td class="pgtable_description">Each row of the table corresponds to a project on Tableau Server.</td></tr>
<tr><td><a href="#_schedules_anchor">_schedules</a></td><td class="pgtable_description">Records define a schedule according to which certain regular tasks may be performed (see tasks table). They also indicate the next time at which the schedule will be triggered.</td></tr>
<tr><td><a href="#_sessions_anchor">_sessions</a></td><td class="pgtable_description">Settings associated with a user's browser session.</td></tr>
<tr><td><a href="#_sites_anchor">_sites</a></td><td class="pgtable_description">Each record represents a site. Each site holds its own workbooks, datasources, users, etc.  Strict isolation between the contents of each site is maintained.</td></tr>
<tr><td><a href="#_subscriptions_anchor">_subscriptions</a></td><td class="pgtable_description">Each record provides information about subscriptions that are scheduled.  Subscriptions are a mechanism for receiving specified content by email on some schedule.</td></tr>
<tr><td><a href="#_system_users_anchor">_system_users</a></td><td class="pgtable_description">Each record represents a user of the server. These records correspond to login identity. A single system_user may potentially be able to login to multiple sites. The linkage between a system_user and their allowed sites is defined through the "users" table.</td></tr>
<tr><td><a href="#_tags_anchor">_tags</a></td><td class="pgtable_description">Each tag is a string value. A given tag can be associated with many taggable items in a site.</td></tr>
<tr><td><a href="#_users_anchor">_users</a></td><td class="pgtable_description">Information relating to users.</td></tr>
<tr><td><a href="#_views_anchor">_views</a></td><td class="pgtable_description">Each records represents a view in a workbook.</td></tr>
<tr><td><a href="#_views_stats_anchor">_views_stats</a></td><td class="pgtable_description">Used to track how many times each user has accessed different views.</td></tr>
<tr><td><a href="#_workbooks_anchor">_workbooks</a></td><td class="pgtable_description">Each record represents a workbook that exists on the server.</td></tr>
<tr><td><a href="#identity_based_activation_admin_view_anchor">identity_based_activation_admin_view</a></td><td class="pgtable_description">Login-based License Management (LBLM) -  Database view to faciliate Admin Server and Site Views for Login-based License Usage Reporting.</td></tr>
<tr><td><a href="#users_view_anchor">users_view</a></td><td class="pgtable_description">Each record corresponds to a user on the system.  The data presented is a combination of user data and data from the linked system_user.</td></tr>
</tbody>
</table>
<a name="api_tokens_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>api_tokens</dfn>:  Records for the api tokens</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>token_id</td><td>character varying</td><td>A unique identifier for the record.</td><tr>
<tr class="field"><td>client_name</td><td>character varying</td><td>The client name for this api token.</td><tr>
<tr class="field"><td>hashed_secret</td><td>text</td><td>The hashed_secret for this api token.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>A foreign key refrence to the user.</td><tr>
<tr class="field"><td>created_timestamp</td><td>timestamp with time zone</td><td>The time this token was created.</td><tr>
<tr class="field"><td>revoked_timestamp</td><td>timestamp with time zone</td><td>The time this token was revoked.</td><tr>
<tr class="field"><td>scope</td><td>character varying</td><td>String containing the scope name</td><tr>
</tbody>
</table>
<a name="asset_key_marker_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>asset_key_marker</dfn>:  Records are used to flag a particular record in the asset_key_meta_data table.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Artificial auto-incrementing integer that serves as the primary key</td><tr>
<tr class="field"><td>asset_key_id</td><td>integer</td><td>The id of the asset_key_meta_data record being marked.</td><tr>
<tr class="field"><td>marker_name</td><td>character varying</td><td>The type of marker.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this records was last updated.</td><tr>
</tbody>
</table>
<a name="asset_key_meta_data_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>asset_key_meta_data</dfn>:  Each record holds meta data for an asset encryption key.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Artificial auto-incrementing integer that serves as the primary key.</td><tr>
<tr class="field"><td>algorithm_name</td><td>character varying</td><td>The algorithm used in conjunction with this key.</td><tr>
<tr class="field"><td>salt</td><td>character varying</td><td>The salt used in the test string.</td><tr>
<tr class="field"><td>test_string</td><td>character varying</td><td>An encrypted version of a well-known test string</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this record was last updated.</td><tr>
</tbody>
</table>
<a name="asset_list_items_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>asset_list_items</dfn>:  Contains the individual list entries that correspond to the lists defined in the asset_lists table.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from asset_list_id on this table to id on table, <a href="#asset_lists_anchor">asset_lists</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record</td><tr>
<tr class="field"><td>asset_list_id</td><td>integer</td><td>A foreign key reference to the asset list to which this item belongs.</td><tr>
<tr class="field"><td>useable_type</td><td>character varying</td><td>One of "View" or "Workbook". The type of object that this item corresponds to.</td><tr>
<tr class="field"><td>useable_id</td><td>integer</td><td>Kind of an informal "polymorphic" foreign key reference to either the corresponding view or workbook as determined by the useable_type field.  Dead links might exist, where the corresponding item has been deleted.</td><tr>
<tr class="field"><td>position</td><td>integer</td><td>Controls the order in which the items are displayed.</td><tr>
<tr class="field"><td>added_timestamp</td><td>timestamp without time zone</td><td>Timestamp of when the row was added to the table. For rows that already existed, use the timestamp of the migration.</td><tr>
</tbody>
</table>
<a name="asset_lists_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>asset_lists</dfn>:  This table supports the creation of various types of per-user lists. The actual list contents are listed in the asset_list_items table.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from owner_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>This is what the type of list is called.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>Foreign key to the user for whom this list was defined.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Foreign key to the site to which the user belongs.</td><tr>
</tbody>
</table>
<a name="async_jobs_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>async_jobs</dfn>:  Records information about background tasks that are run in response to some user action (as opposed to being run on some schedule).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record</td><tr>
<tr class="field"><td>job_type</td><td>character varying</td><td>The type of job being run</td><tr>
<tr class="field"><td>success</td><td>boolean</td><td>Whether or not the job succeeded. Will be true for success, and false for failure.</td><tr>
<tr class="field"><td>worker</td><td>character varying</td><td>Identifies the machine on which the job is run</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>Links to the user who triggered the running of the job.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Links to the relevant site.</td><tr>
<tr class="field"><td>notes</td><td>text</td><td>Can be used to store additional information about the running of the job.</td><tr>
<tr class="field"><td>progress</td><td>integer</td><td>Can be used to indicate percent complete for the job, but in most cases simply gets set to 100 when the job is completed</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this record was last updated.</td><tr>
<tr class="field"><td>completed_at</td><td>timestamp without time zone</td><td>When the job finished execution. When set, this should generally agree with the updated_at field.</td><tr>
<tr class="field"><td>detailed_status</td><td>text</td><td>Stores information about current progress details of the async job.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>An identifier that is unique in combination with the site_id.</td><tr>
</tbody>
</table>
<a name="authorizable_permission_sets_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>authorizable_permission_sets</dfn>:  Many-to-many mapping table between authorizables and permission sets.  An authorizable may have a permission set for every permission_set_class.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from permission_set_id on this table to id on table, <a href="#permission_sets_anchor">permission_sets</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>authorizable_id</td><td>integer</td><td>Refers to the id of the authorizable (e.g. workbook) depending on the value of authorizable_type.</td><tr>
<tr class="field"><td>authorizable_type</td><td>character varying</td><td>Refers to the type of the authorizable (e.g. workbook).</td><tr>
<tr class="field"><td>permission_set_id</td><td>integer</td><td>The permission set this item uses.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site id.</td><tr>
</tbody>
</table>
<a name="background_jobs_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>background_jobs</dfn>:  Records information about background tasks that are run by a Backgrounder process. These tasks are almost always run according to some schedule, but in a few cases they may also be triggered by some user actions.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>job_type</td><td>character varying</td><td>The type of job being run. This looks a bit odd because it comes from a serialized symbol.</td><tr>
<tr class="field"><td>progress</td><td>integer</td><td>Can be used to indicate percent complete for the job, but in most cases simply gets set to 100 when the job is completed.</td><tr>
<tr class="field"><td>args</td><td>text</td><td>Used as a means of passing parameters about the background job.  This information is stored in a special serialized format, and thus is not easily readable.</td><tr>
<tr class="field"><td>notes</td><td>text</td><td>Can be used to store additional information about the running of the job.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this record was last updated</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>completed_at</td><td>timestamp without time zone</td><td>When the job finished execution. When set, this should generally agree with the updated_at field.</td><tr>
<tr class="field"><td>started_at</td><td>timestamp without time zone</td><td>When the execution of the job was started. This is not generally the same as created_at, because it may take some time before a backgrounder "notices" the newly created record and begins to process it.</td><tr>
<tr class="field"><td>job_name</td><td>character varying</td><td>A nice readable name for this type of job.</td><tr>
<tr class="field"><td>finish_code</td><td>integer</td><td>Completion status for the job. Will be 0 for success, 1 for failure, and 2 for cancelled.</td><tr>
<tr class="field"><td>priority</td><td>integer</td><td>Controls which background_jobs records are processed first. The highest priority is 0, and the lowest is 100. Integer values in between are also valid.</td><tr>
<tr class="field"><td>title</td><td>character varying</td><td>Can be used to provide some additional information about the job.</td><tr>
<tr class="field"><td>created_on_worker</td><td>character varying</td><td>Identifies the machine that created this background_jobs record.</td><tr>
<tr class="field"><td>processed_on_worker</td><td>character varying</td><td>Identifies the machine on which the job is run.</td><tr>
<tr class="field"><td>link</td><td>text</td><td>Used, for certain types of jobs, to record a relevant URL.</td><tr>
<tr class="field"><td>lock_version</td><td>integer</td><td>Used to implement "optimistic locking." Don't set this or mess with it, it's all handled automatically.</td><tr>
<tr class="field"><td>backgrounder_id</td><td>character varying</td><td>Indicates which backgrounder process ran the job.</td><tr>
<tr class="field"><td>serial_collection_id</td><td>integer</td><td>It is possible to designate a job as part of a "serial collection," by setting its serial_collection_id. Two jobs with the same serial_collection_id cannot be processed simultaneously. Note that serial_collection_id is actually a foreign key to the serial_collections table. This is not a capability that sees much use.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Links to a site, if one is relevant, otherwise it is left NULL.</td><tr>
<tr class="field"><td>subtitle</td><td>character varying</td><td>Can be used to provide some additional information about the job.</td><tr>
<tr class="field"><td>language</td><td>character varying</td><td>The language for the job is listed here.</td><tr>
<tr class="field"><td>locale</td><td>character varying</td><td>The locale for the job is listed here.</td><tr>
<tr class="field"><td>correlation_id</td><td>integer</td><td>The ID to correlate occurrences of the same job, which is the foreign key reference to the record in the respective definition table for subscriptions (subscriptions table) and extract-refresh jobs (tasks table).</td><tr>
<tr class="field"><td>attempts_remaining</td><td>integer</td><td>Used track amount of execution attempts remaining for the job. Usually NULL for job that are attempted only once. Number greater than 0 for jobs that will be retried.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>An identifier that is unique in combination with the site_id.</td><tr>
<tr class="field"><td>job_rank</td><td>bigint</td><td>Stores the calculated ranking of the job, determines the order it will be run on</td><tr>
<tr class="field"><td>queue_id</td><td>integer</td><td>Identifier representing which virtual queue this job belongs to</td><tr>
<tr class="field"><td>overflow</td><td>boolean</td><td>Represents if the job is in overflow queue or not</td><tr>
<tr class="field"><td>promoted_at</td><td>timestamp without time zone</td><td>When the job is promoted to primary queue from overflow queue. Null for non overflow jobs</td><tr>
<tr class="field"><td>task_id</td><td>integer</td><td>Id of the task associated with the job. Explicitly not a foreign key to allow for tasks to be deleted without deleting related job records.</td><tr>
<tr class="field"><td>run_now</td><td>boolean</td><td>Indicates if the job was triggered by run now</td><tr>
<tr class="field"><td>creator_id</td><td>integer</td><td>Indicates what user id is the creator of the job</td><tr>
</tbody>
</table>
<a name="background_jobs_cancel_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>background_jobs_cancel</dfn>:  BG jobs for which cancellation has been requested</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from background_job_id on this table to id on table, <a href="#background_jobs_anchor">background_jobs</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the cancellation request</td><tr>
<tr class="field"><td>background_job_id</td><td>integer</td><td>The id of the job to be cancelled</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When the cancellation was requested</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When the cancellation was last updated</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>The user who requested cancellation</td><tr>
<tr class="field"><td>users_to_notify</td><td>text</td><td>CSV encoded list of IDs representing users to notify about job cancellation</td><tr>
<tr class="field"><td>cancellation_reason</td><td>character varying</td><td>User provided reason for the cancellation of the job</td><tr>
</tbody>
</table>
<a name="big_texts_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>big_texts</dfn>:  This table serves as a convenient place to store a big text object, if necessary. It's kind of a utility table. This table is really just used for internal purposes.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>txt</td><td>text</td><td>Holds whatever text object is desired. There is no specific designated use for this field. Any code can store a text object here for whatever purpose it wishes.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time at which this record was last changed.</td><tr>
</tbody>
</table>
<a name="capabilities_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>capabilities</dfn>:  Holds a relatively short list of capabilities. A user can be allowed certain capabilities either through being some sort of admin, or through owning something like a workbook or a project, or via entries in the next_gen_permissions table. Capabilities are things like read, write, export_data, publish, web_authoring, etc.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>This (or the id) is how the capability is referred to by code.</td><tr>
<tr class="field"><td>display_name</td><td>character varying</td><td>This is the name that may be displayed to a user.</td><tr>
<tr class="field"><td>display_order</td><td>integer</td><td>Ascending order of this value is the order in which capabilities are listed, when displayed.</td><tr>
</tbody>
</table>
<a name="capability_roles_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>capability_roles</dfn>:  This table serves primarily to associate roles with capabilities. A given role can have many capabilities, and a given capability can be associated with several roles.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from capability_id on this table to id on table, <a href="#capabilities_anchor">capabilities</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from role_id on this table to id on table, <a href="#roles_anchor">roles</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>capability_id</td><td>integer</td><td>Foreign key reference to the capabilities table.</td><tr>
<tr class="field"><td>role_id</td><td>integer</td><td>Foreign key reference to the roles table.</td><tr>
</tbody>
</table>
<a name="column_assets_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>column_assets</dfn>:  Each record represents a column asset that exists on Tableau Server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from table_id on this table to id on table, <a href="#table_assets_anchor">table_assets</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the column asset record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the column asset.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>A unique, immutable identifier for the column asset.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site that this column asset is associated with.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time the record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time the record was updated.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>The description of the column asset.</td><tr>
<tr class="field"><td>table_id</td><td>integer</td><td>The table this column belongs to.</td><tr>
<tr class="field"><td>remote_type</td><td>character varying</td><td>The data type of the column.</td><tr>
</tbody>
</table>
<a name="comment_attachments_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>comment_attachments</dfn>:  Attachments for comments.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from comment_id on this table to id on table, <a href="#comments_anchor">comments</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>comment_id</td><td>integer</td><td>A foreign key reference to the comment that the attachments is attached to.</td><tr>
<tr class="field"><td>attachment_type</td><td>character varying</td><td>The type of the attachment.</td><tr>
<tr class="field"><td>attachment_id</td><td>integer</td><td>The id of the attachment.</td><tr>
</tbody>
</table>
<a name="comments_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>comments</dfn>:  Comments users made on views.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>title</td><td>text</td><td>Not used.</td><tr>
<tr class="field"><td>comment</td><td>text</td><td>Comment text.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Date when comment was created.</td><tr>
<tr class="field"><td>commentable_id</td><td>integer</td><td>Corresponding view id.</td><tr>
<tr class="field"><td>commentable_type</td><td>character varying</td><td>View.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>Id of the user who made the comment.</td><tr>
<tr class="field"><td>drawing</td><td>text</td><td>Not used.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Date when comment was last updated.</td><tr>
</tbody>
</table>
<a name="content_sync_token_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>content_sync_token</dfn>:  Each record stores the checksum associated to a piece of content</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Id associated to that piece of content.</td><tr>
<tr class="field"><td>content_type</td><td>character varying</td><td>The type of the content.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The associated site.</td><tr>
<tr class="field"><td>sync_token</td><td>character varying</td><td>A unique identifier for this version of the associated content.</td><tr>
</tbody>
</table>
<a name="customized_views_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>customized_views</dfn>:  When a user creates a customized view, the data that supports that goes in this table.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from creator_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from start_view_id on this table to id on table, <a href="#views_anchor">views</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from view_id on this table to id on table, <a href="#views_anchor">views</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the customized view.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>A description of the customized view. Seems not to be used commonly.</td><tr>
<tr class="field"><td>view_id</td><td>integer</td><td>A foreign key reference to the views table. Refers specifically to the view that this customized view is based on.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this record was last updated.</td><tr>
<tr class="field"><td>creator_id</td><td>integer</td><td>Foreign key reference to the user who created this customized view.</td><tr>
<tr class="field"><td>public</td><td>boolean</td><td>Indicates if the user elected to share his customized view.</td><tr>
<tr class="field"><td>size</td><td>integer</td><td>The number of bytes it took to describe the changes from the base view to the customized view.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>A foreign key to the site that this customized view is associated with (the site of the user who created it).</td><tr>
<tr class="field"><td>repository_thumbnail_data_id</td><td>bigint</td><td>A reference to an entry in the repository_data table, which, in turn references the PostgreSQL large object that contains the thumbnail image for this customized view.</td><tr>
<tr class="field"><td>url_id</td><td>character varying</td><td>A URL compatible string derived from the name of the customized view. This must be unique when taken together with the customized view creator and the view.</td><tr>
<tr class="field"><td>start_view_id</td><td>integer</td><td>A foreign key reference to the view from which this customized view was derived.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>A "locally unique" id used to identify this record for certain uses. It is generated automatically, and is nothing that a customer needs to worry about.</td><tr>
<tr class="field"><td>data_id</td><td>character varying</td><td>Unique ID used to identify the view data.</td><tr>
<tr class="field"><td>thumbnail_id</td><td>character varying</td><td>Unique ID used to identify the thumbnail.</td><tr>
<tr class="field"><td>hidden</td><td>boolean</td><td>Indicates if the custom view is hidden.</td><tr>
<tr class="field"><td>created_by_feature</td><td>integer</td><td>Feature which created customized view.</td><tr>
<tr class="field"><td>accessed_at</td><td>timestamp without time zone</td><td>Last accessed datetime for customized view. NULL: never accessed</td><tr>
</tbody>
</table>
<a name="data_alerts_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>data_alerts</dfn>:  Each record represents an alert. An alert is a predefined data conditions on a view, and if conditions are met all alert recipients get notified.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from creator_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from customized_view_id on this table to id on table, <a href="#customized_views_anchor">customized_views</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from view_id on this table to id on table, <a href="#views_anchor">views</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from workbook_id on this table to id on table, <a href="#workbooks_anchor">workbooks</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>title</td><td>character varying</td><td>A string that describes the alert.</td><tr>
<tr class="field"><td>creator_id</td><td>integer</td><td>User id for user who created the alert. FK reference to users.id.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site ID for alert. FK reference to sites.id.</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>A foreign key reference to the workbook.id.</td><tr>
<tr class="field"><td>view_id</td><td>integer</td><td>A foreign key reference to the view.id.</td><tr>
<tr class="field"><td>customized_view_id</td><td>integer</td><td>A foreign key reference to the customized.view.id.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>UUID for alert used in REST APIs.</td><tr>
<tr class="field"><td>data_specification</td><td>character varying</td><td>Platform-parsable blob that describes which data to track.</td><tr>
<tr class="field"><td>last_checked</td><td>timestamp without time zone</td><td>The last time at which the the alert was checked.</td><tr>
<tr class="field"><td>notification_interval_in_minutes</td><td>integer</td><td>The interval in minutes in which to send no more than one alert.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time when this row was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time when this row was last updated.</td><tr>
<tr class="field"><td>last_edited</td><td>timestamp without time zone</td><td>The time a user last edited this data alert.</td><tr>
<tr class="field"><td>suspend_state</td><td>integer</td><td>0: alert is not suspended, 1: alert was auto-suspended, 2: alert was manually suspended.</td><tr>
<tr class="field"><td>failure_count</td><td>integer</td><td>The number of consecutive times evaluating this alert failed.</td><tr>
<tr class="field"><td>device_type</td><td>integer</td><td>0: device type is default, 1: device type is desktop, 2: device type is tablet, 3: device type is phone.</td><tr>
<tr class="field"><td>public</td><td>boolean</td><td>Determines whether the alert is shared with other users</td><tr>
</tbody>
</table>
<a name="data_alerts_recipients_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>data_alerts_recipients</dfn>:  Each record represents the intent of recipient to be notified if an event is triggered.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from data_alert_id on this table to id on table, <a href="#data_alerts_anchor">data_alerts</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>recipient_id</td><td>integer</td><td>It references a user or group id.</td><tr>
<tr class="field"><td>data_alert_id</td><td>integer</td><td>A reference to data alert id.</td><tr>
<tr class="field"><td>recipient_type</td><td>character varying</td><td>A string that describes the recipient type, currently single user or group.</td><tr>
<tr class="field"><td>last_sent</td><td>timestamp without time zone</td><td>The last time at which the the alert was sent to the user.</td><tr>
<tr class="field"><td>last_state</td><td>boolean</td><td>Whether the condition evaluated to true or false for the user the last time it was checked.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time when this row was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time when this row was last updated.</td><tr>
</tbody>
</table>
<a name="data_connections_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>data_connections</dfn>:  Describes various data sources that are included in either workbooks or datasources.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>server</td><td>text</td><td>DNS server name to connect to.</td><tr>
<tr class="field"><td>dbclass</td><td>character varying</td><td>Type of data connection (ie mysql, postgres, sqlproxy etc).</td><tr>
<tr class="field"><td>port</td><td>integer</td><td>TCP port number of the connection (eg. 5432 for postgres).</td><tr>
<tr class="field"><td>username</td><td>text</td><td>Username to use when connecting.</td><tr>
<tr class="field"><td>password</td><td>boolean</td><td>True means password is embedded in owner (see owner_type and owner_id fields).</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>Unique identifier for this data_connection.</td><tr>
<tr class="field"><td>dbname</td><td>character varying</td><td>The database name to which the particular connection is linked.</td><tr>
<tr class="field"><td>tablename</td><td>character varying</td><td>The name of the table in the database that this connection connects to.</td><tr>
<tr class="field"><td>owner_type</td><td>character varying</td><td>One of "Datasource" or "Workbook". It is the type of object making the data connection.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>The ID of the workbook or datasource that is creating the data connection.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this record was last updated.</td><tr>
<tr class="field"><td>caption</td><td>character varying</td><td>Friendly name of this connection as seen in the Desktop data pane.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>A foreign key reference to the site in which this data connection is contained.</td><tr>
<tr class="field"><td>keychain</td><td>text</td><td>Encode string in yaml format. An attribute bag that will match the embedded keychain connection this connection is associated with.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>The locally unique ID, which is intended for exposing externally by the server API. This is automatically generated.</td><tr>
<tr class="field"><td>has_extract</td><td>boolean</td><td>Indicates if the data connection is an extract.</td><tr>
<tr class="field"><td>datasource_id</td><td>integer</td><td>Reference to the Datasource that owns this data connection.</td><tr>
<tr class="field"><td>db_subclass</td><td>character varying</td><td>Subclass of the dbclass, for example, dbclass is webdata-direct, db_subclass is intuit-quickbook</td><tr>
<tr class="field"><td>authentication</td><td>character varying</td><td>When present, can be used to identify what authentication method is being used for the data connection</td><tr>
</tbody>
</table>
<a name="data_quality_indicators_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>data_quality_indicators</dfn>:  Table to store data quality indicators.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Auto increment primary key.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>Autogenerated luid for data quality indicator.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Id of the site where data quality indicator belongs.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>Id of user who created/updated data quality indicator.</td><tr>
<tr class="field"><td>user_display_name</td><td>character varying</td><td>Display name of user who created/updated data quality indicator.</td><tr>
<tr class="field"><td>content_id</td><td>integer</td><td>Id of content for which data quality indicator stored.</td><tr>
<tr class="field"><td>content_type</td><td>character varying</td><td>Type of content for which data quality indicator stored.</td><tr>
<tr class="field"><td>message</td><td>text</td><td>Message of data quality indicator.</td><tr>
<tr class="field"><td>data_quality_type</td><td>character varying</td><td>Type of data quality indicator.</td><tr>
<tr class="field"><td>is_active</td><td>boolean</td><td>Represents state of data quality indicator as true or false.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Timestamp when record is created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Timestamp when record is updated.</td><tr>
<tr class="field"><td>is_tombstoned</td><td>boolean</td><td>Tombstoned data quality indicators are "soft deleted" because they are associated with databases that have been grouped with other databases.</td><tr>
<tr class="field"><td>is_severe</td><td>boolean</td><td>indicates the if a data_quality_indicator is severe or not. True means severe otherwise not.</td><tr>
</tbody>
</table>
<a name="data_role_contents_association_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>data_role_contents_association</dfn>:  Represents the association between the data_role and other content types.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from data_role_id on this table to id on table, <a href="#data_roles_anchor">data_roles</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>data_role_id</td><td>integer</td><td>The data_role_id for the data_role entity.</td><tr>
<tr class="field"><td>content_type</td><td>text</td><td>Identifies the content-type which is associated with the data_role.</td><tr>
<tr class="field"><td>content_id</td><td>integer</td><td>content_id is the unique identifier for the corresponding content-type.</td><tr>
</tbody>
</table>
<a name="data_role_datasource_field_association_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>data_role_datasource_field_association</dfn>:  Represents the association between the data_role and the field on a datasource</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from published_datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from associator_user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site on which the datasource is published</td><tr>
<tr class="field"><td>published_datasource_id</td><td>integer</td><td>The id of the published datasource on the site</td><tr>
<tr class="field"><td>field_graph_id</td><td>text</td><td>The graph id of the field in the datasource</td><tr>
<tr class="field"><td>field_concept_key</td><td>text</td><td>field_concept_key is the unique identifier for the dataRole</td><tr>
<tr class="field"><td>associator_user_id</td><td>integer</td><td>associator_user_id is the unique identifier for the user who created the association</td><tr>
<tr class="field"><td>link_status</td><td>integer</td><td>link_status tells the current state of the association between the field and the dataRole</td><tr>
</tbody>
</table>
<a name="data_roles_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>data_roles</dfn>:  Each record represents an entry of Semantics Service data role metadata.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from owner_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from project_id on this table to id on table, <a href="#projects_anchor">projects</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the data role metadata record.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The name of the data role.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>The user id of the owner/publisher of the data role.</td><tr>
<tr class="field"><td>project_id</td><td>integer</td><td>The id of the project that this data role lives under.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site that this data role is associated with.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The timestamp when the record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The timestamp when the record was last updated.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>The description of the data role.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>An identifier that is unique in combination with the site_id.</td><tr>
</tbody>
</table>
<a name="database_asset_events_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>database_asset_events</dfn>:  Used to store database_asset events stream.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>database_asset_id</td><td>integer</td><td>database_asset ID.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site ID.</td><tr>
<tr class="field"><td>event_created_at</td><td>timestamp without time zone</td><td>Timestamp indicating when the record was inserted.</td><tr>
<tr class="field"><td>event_type</td><td>smallint</td><td>Event type to differentiate between insert, update, delete.</td><tr>
</tbody>
</table>
<a name="database_assets_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>database_assets</dfn>:  Each record represents a database that exists on Tableau Server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from certifier_user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from grouped_parent_id on this table to id on table, <a href="#database_assets_anchor">database_assets</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the database record.</td><tr>
<tr class="field"><td>connection_type</td><td>character varying</td><td>Connection type for the database record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the database.</td><tr>
<tr class="field"><td>port</td><td>integer</td><td>The name of the database port.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>A unique, immutable identifier for the database.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site that this database is associated with.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time the record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time the record was updated.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>The description of the database.</td><tr>
<tr class="field"><td>controlled_permissions_enabled</td><td>boolean</td><td>Whether controlled permissions are enabled for the database</td><tr>
<tr class="field"><td>contact_id</td><td>integer</td><td>The contact for this database.</td><tr>
<tr class="field"><td>contact_type</td><td>character varying</td><td>The contact type (user or group) for this database.</td><tr>
<tr class="field"><td>type</td><td>character varying</td><td>Type (Database, File, WebDataConnector) for the database record.</td><tr>
<tr class="field"><td>file_path</td><td>text</td><td>Path to file.</td><tr>
<tr class="field"><td>is_embedded</td><td>boolean</td><td>Whether file is embedded (e.g., packaged in a twbx/tflx) or not.</td><tr>
<tr class="field"><td>connector_url</td><td>text</td><td>The connector url for a web data connector.</td><tr>
<tr class="field"><td>host_name</td><td>text</td><td>The database server host name.</td><tr>
<tr class="field"><td>provider</td><td>character varying</td><td>Provider for a Cloud File.</td><tr>
<tr class="field"><td>file_extension</td><td>character varying</td><td>File Extension for a Cloud File.</td><tr>
<tr class="field"><td>mime_type</td><td>character varying</td><td>mime type for a Cloud File.</td><tr>
<tr class="field"><td>file_id</td><td>character varying</td><td>File Id for a Cloud File.</td><tr>
<tr class="field"><td>request_url</td><td>text</td><td>Request URL for a Cloud File.</td><tr>
<tr class="field"><td>is_certified</td><td>boolean</td><td>Whether this database is certified.</td><tr>
<tr class="field"><td>certification_note</td><td>text</td><td>Certification note for this database.</td><tr>
<tr class="field"><td>certifier_user_id</td><td>integer</td><td>Certifier user_id for this database.</td><tr>
<tr class="field"><td>certifier_details</td><td>text</td><td>Certifier details for this database.</td><tr>
<tr class="field"><td>source_type</td><td>character varying</td><td>Type of the database source, if this database is embedded.</td><tr>
<tr class="field"><td>source_id</td><td>integer</td><td>ID of the database source, if this database is embedded.</td><tr>
<tr class="field"><td>internal_identifier</td><td>text</td><td>A unique identifier for an embedded database internal to its parent content item.</td><tr>
<tr class="field"><td>extended_connection_type</td><td>character varying</td><td>optional - type of connection - some dbs require it - for example SingleNode or MultiNode for SAP HANA</td><tr>
<tr class="field"><td>service</td><td>character varying</td><td>optional - some dbs optionally have it - for example Snowflake has option roles which we store in this field</td><tr>
<tr class="field"><td>duplicate_id</td><td>integer</td><td>If not null, id of database that is a duplicate of this one.</td><tr>
<tr class="field"><td>is_tombstoned</td><td>boolean</td><td>Tombstoned databases are "soft deleted" because they have been grouped with other databases. They can be ungrouped to remove this soft deletion.</td><tr>
<tr class="field"><td>grouped_parent_id</td><td>integer</td><td>ID in database_assets table of database this tombstoned database was grouped into.</td><tr>
<tr class="field"><td>is_grouped_parent</td><td>boolean</td><td>True if this database is the result of grouping other databases.</td><tr>
</tbody>
</table>
<a name="datasource_events_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>datasource_events</dfn>:  Used to store datasource events stream.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>datasource_id</td><td>integer</td><td>Datasource ID.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site ID.</td><tr>
<tr class="field"><td>event_time</td><td>timestamp without time zone</td><td>Timestamp indicating when the record was inserted.</td><tr>
<tr class="field"><td>event_type</td><td>integer</td><td>Event type to differentiate between insert, update, delete.</td><tr>
</tbody>
</table>
<a name="datasource_fields_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>datasource_fields</dfn>:  Describes datasource fields.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the datasource field record.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The name of the datasource field.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>The description of the datasource field.</td><tr>
<tr class="field"><td>datasource_id</td><td>integer</td><td>The id of the datasource that this field is associated with.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site id.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time the record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time the record was updated.</td><tr>
</tbody>
</table>
<a name="datasource_metrics_aggregations_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>datasource_metrics_aggregations</dfn>:  Each record represents a partial aggregation of analytics for a given datasource in a given time interval.  It is often necessary to sum across multiple rows to find a total for a given time interval.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>datasource_id</td><td>integer</td><td>A foreign key reference to the datasource.</td><tr>
<tr class="field"><td>day_index</td><td>integer</td><td>Records what day of the month the analytics are aggregated over.  When 0, the aggregation is for the month and year as designated by month_index and year_index.</td><tr>
<tr class="field"><td>month_index</td><td>integer</td><td>Records what month of the year the analytics are aggregated over.  When 0, the aggregation is for the year as designated by year_index.</td><tr>
<tr class="field"><td>year_index</td><td>integer</td><td>Records what year the analytics are aggregated over</td><tr>
<tr class="field"><td>view_count</td><td>integer</td><td>Records the number of times a datasource was viewed in the given time interval.</td><tr>
</tbody>
</table>
<a name="datasource_refresh_properties_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>datasource_refresh_properties</dfn>:  Extension of datasources table for refresh properties (Online). This is 1-0/1 relationship to datasources table. It is
 a separate table since it contains Online-specific properties.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from remote_agent_id on this table to id on table, <a href="#remote_agents_anchor">remote_agents</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Datasource ID from datasources table. it is 1-0/1 relationship to datasources table.</td><tr>
<tr class="field"><td>refresh_mode</td><td>character varying</td><td>Specifies the mode of datasource refresh</td><tr>
<tr class="field"><td>remote_agent_id</td><td>integer</td><td>The associated remote agent ID responsible for data source refresh.</td><tr>
<tr class="field"><td>schedules</td><td>json</td><td>Array of DatasourceRefreshSchedule objects in JSON format.</td><tr>
<tr class="field"><td>last_refresh_error_client_data</td><td>character varying</td><td>Information about the last refresh error for the purpose of reconstructing the client view of the errors.</td><tr>
<tr class="field"><td>remote_agent_reservation_id</td><td>character varying</td><td>Unique string, e.g. GUID, that represents a reservation that a remote agent has yet to claim.</td><tr>
<tr class="field"><td>expected_refresh_time</td><td>timestamp with time zone</td><td>Time at which the schedule is expected to refresh in UTC</td><tr>
<tr class="field"><td>expected_refresh_duration</td><td>integer</td><td>Time duration in seconds after which a scheduled extract refresh is expected to complete</td><tr>
<tr class="field"><td>next_check_time</td><td>timestamp with time zone</td><td>The next check time in UTC when the server checks if the linked bridge client is actively running or other interesting scenarios that might arise in the future</td><tr>
</tbody>
</table>
<a name="datasource_versions_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>datasource_versions</dfn>:  Datasource versions saved on server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The id of a version. Primary key.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Reference to entury in sites table. Indicates the site to which this datasource version belongs to.</td><tr>
<tr class="field"><td>datasource_id</td><td>integer</td><td>A foreign key to the datasources table. Reference to Datasource.</td><tr>
<tr class="field"><td>publisher_id</td><td>integer</td><td>Reference to user in site users table. User who published this version. Can point to deleted user.</td><tr>
<tr class="field"><td>version_number</td><td>integer</td><td>The version number.</td><tr>
<tr class="field"><td>published_at</td><td>timestamp without time zone</td><td>The time when this version was initially published. Copied from datasource record last_updated field at the time of being overwritten.</td><tr>
<tr class="field"><td>size</td><td>bigint</td><td>The size, in bytes, of this version of datasource.</td><tr>
<tr class="field"><td>content_key</td><td>character varying</td><td>Key of the datasource as string</td><tr>
<tr class="field"><td>sos_type</td><td>character varying</td><td>The SOS data type under which this version document is stored, or null if it is not stored in SOS.</td><tr>
</tbody>
</table>
<a name="datasources_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>datasources</dfn>:  Records all Published datasources on server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from modified_by_user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from owner_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from project_id on this table to id on table, <a href="#projects_anchor">projects</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the published datasource.</td><tr>
<tr class="field"><td>repository_url</td><td>text</td><td>Uniquely identifies a datasource. More or less consists of a slightly modified name, but not totally obviously, especially in the presence of non-ASCII characters. Used in URLs meant to access this datasource.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>The user ID of the owner/uploader of the datasource.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this record was last updated.</td><tr>
<tr class="field"><td>project_id</td><td>integer</td><td>The associated project ID where the datasource was published.</td><tr>
<tr class="field"><td>size</td><td>bigint</td><td>The size in bytes of the datasource.</td><tr>
<tr class="field"><td>lock_version</td><td>integer</td><td>Used to implement "optimistic locking". Don't set this or mess with it, it's all handled automatically.</td><tr>
<tr class="field"><td>state</td><td>character varying</td><td>One of "active" or NULL.</td><tr>
<tr class="field"><td>db_class</td><td>text</td><td>The origin of the data. It's often a database, but the concept is a bit more general than that. For example, "oracle" and "db2" are possibilities, but so are "excel" and "dataengine" (and many more).</td><tr>
<tr class="field"><td>db_name</td><td>text</td><td>The name of the database associated with the published datasource. But because data sources are more general than databases, in some instances, this might actually be a file path, or blank.</td><tr>
<tr class="field"><td>table_name</td><td>text</td><td>The name of the table associated with the published datasource. But, because data sources are more general than databases, this might, for example, actually refer to an Excel worksheet, or be blank.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>A foreign key reference to the site with which this datasource is associated.</td><tr>
<tr class="field"><td>revision</td><td>character varying</td><td>Increments each time a new version of the datasource is published.</td><tr>
<tr class="field"><td>embedded</td><td>text</td><td>An encrypted keychain holding any credentials stored with the datasource.</td><tr>
<tr class="field"><td>incrementable_extracts</td><td>boolean</td><td>True or false as to whether incrementable extracts are allowed for the published datasource.</td><tr>
<tr class="field"><td>refreshable_extracts</td><td>boolean</td><td>True or false as to whether refreshable extracts are avaliable for the published datasource.</td><tr>
<tr class="field"><td>data_engine_extracts</td><td>boolean</td><td>True means the data was supplied in the form of a Tableau data extract, though the original source of the data may be known to reside elsewhere.</td><tr>
<tr class="field"><td>extracts_refreshed_at</td><td>timestamp without time zone</td><td>Records the time of the last full extract refresh.</td><tr>
<tr class="field"><td>first_published_at</td><td>timestamp without time zone</td><td>When the first publication of this datasource occurred.</td><tr>
<tr class="field"><td>connectable</td><td>boolean</td><td>If this datasource was published using a release of the software where connecting to datasources through the Data Server was supported (post 7.0).</td><tr>
<tr class="field"><td>is_hierarchical</td><td>boolean</td><td>Set to true if the source is a hierarchical (cube) database.</td><tr>
<tr class="field"><td>extracts_incremented_at</td><td>timestamp without time zone</td><td>Records the time of the last incremental extract refresh.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>Unique identifier.</td><tr>
<tr class="field"><td>document_version</td><td>character varying</td><td>The internal version of the .tds file associated with this record.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>A textual description of the datasource.</td><tr>
<tr class="field"><td>content_version</td><td>integer</td><td>$Version number of the datasource. updated on each publish</td><tr>
<tr class="field"><td>parent_workbook_id</td><td>integer</td><td>Is set to null for published datasources or else references the workbook id that contains this datasource.</td><tr>
<tr class="field"><td>hidden_name</td><td>character varying</td><td>Auto-generated name for the datasource extracted from the twb/tds file.</td><tr>
<tr class="field"><td>last_published_at</td><td>timestamp without time zone</td><td>Time that the user last published this datasource to server. For datasources that were last published before this column existed, the value will be null.</td><tr>
<tr class="field"><td>data_id</td><td>character varying</td><td>Unique ID used to identify the datasource data.</td><tr>
<tr class="field"><td>reduced_data_id</td><td>character varying</td><td>Unique ID used to identify the reduced datasource data.</td><tr>
<tr class="field"><td>remote_query_agent_id</td><td>integer</td><td>If present, the agent to remote queries to.</td><tr>
<tr class="field"><td>using_remote_query_agent</td><td>boolean</td><td>Whether the queries to this data source may be proxied via a remote agent.</td><tr>
<tr class="field"><td>is_certified</td><td>boolean</td><td>Whether or not this datasource is certified.</td><tr>
<tr class="field"><td>certification_note</td><td>text</td><td>Explanation for the certification status of this datasource.</td><tr>
<tr class="field"><td>certifier_user_id</td><td>integer</td><td>The user id of the user that certified this datasource, or null if it is not certified.</td><tr>
<tr class="field"><td>certifier_details</td><td>text</td><td>A snapshot of user information that we want to retain even when the user is deleted.</td><tr>
<tr class="field"><td>extract_encryption_state</td><td>smallint</td><td>If not null, encryption state of the extracts. null or 0 - unencrypted, 1 - encrypted, 2 - pending encryption, 3 - pending decryption, 5 - pending rekey</td><tr>
<tr class="field"><td>nlp_setting</td><td>text</td><td>Setting to enable/disable nlp feature on this datasource</td><tr>
<tr class="field"><td>extract_creation_pending</td><td>smallint</td><td>null or 0 - there is not extract creation in progress, 1 - there is an extract creation in progress</td><tr>
<tr class="field"><td>parent_type</td><td>text</td><td>Indicates the parent_type of the datasource (datarole, workbook, null)</td><tr>
<tr class="field"><td>nlp_setting_new</td><td>text</td><td>Setting to specify whether a datasource should have Ask Data enabled, disabled, or set to the site default. The site default value was added in 2019.4. This column is kept in sync with the old nlp_setting column until we can deprecate nlp_setting in 2020.3</td><tr>
<tr class="field"><td>modified_by_user_id</td><td>integer</td><td>The user who last modified and published this datasource to server or saved the datasource during web edit. For datasource that were last published before this column existed, the value will be same as owner_id.</td><tr>
</tbody>
</table>
<a name="desktop_reporting_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>desktop_reporting</dfn>:  Each record represents a Tableau Desktop usage report.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The id of the report. Primary key.</td><tr>
<tr class="field"><td>app_version</td><td>character varying</td><td>Tableau product version.</td><tr>
<tr class="field"><td>email</td><td>character varying</td><td>Registered email address.</td><tr>
<tr class="field"><td>expiration_date</td><td>date</td><td>Expiration date of active key. NULL means permanent.</td><tr>
<tr class="field"><td>first_name</td><td>character varying</td><td>First Name.</td><tr>
<tr class="field"><td>last_name</td><td>character varying</td><td>Last Name.</td><tr>
<tr class="field"><td>computer_user_id</td><td>character varying</td><td>Computer user or login id.</td><tr>
<tr class="field"><td>host_name</td><td>character varying</td><td>Computer host name.</td><tr>
<tr class="field"><td>department</td><td>character varying</td><td>Department.</td><tr>
<tr class="field"><td>company</td><td>character varying</td><td>Company or organization.</td><tr>
<tr class="field"><td>os_version</td><td>character varying</td><td>OS version.</td><tr>
<tr class="field"><td>os_architecture</td><td>character varying</td><td>OS architecture.</td><tr>
<tr class="field"><td>registration_date</td><td>timestamp without time zone</td><td>Date active key was registered.</td><tr>
<tr class="field"><td>last_report_date</td><td>timestamp without time zone</td><td>Last report for this Desktop.</td><tr>
<tr class="field"><td>maintenance_expiration</td><td>date</td><td>Maintenance expiration of in use product key.</td><tr>
<tr class="field"><td>product_name</td><td>character varying</td><td>Product name.</td><tr>
<tr class="field"><td>edition</td><td>character varying</td><td>Tableau Desktop Edition. E.g Professional or Standard.</td><tr>
<tr class="field"><td>type</td><td>character varying</td><td>Type of key. Trial or Perpetual.</td><tr>
<tr class="field"><td>product_keys</td><td>character varying</td><td>Semicolon delimited product keys. Characters beyond 9 replaced with X.</td><tr>
<tr class="field"><td>serial_number</td><td>character varying</td><td>Computer serial number.</td><tr>
<tr class="field"><td>mac_address</td><td>character varying</td><td>Network card MAC address.</td><tr>
<tr class="field"><td>domain</td><td>character varying</td><td>Computer Active Directory domain.</td><tr>
<tr class="field"><td>unique_machine_number</td><td>character varying</td><td>Unique Machine Number.  A string uniquely identifying a computer.</td><tr>
<tr class="field"><td>action</td><td>character varying</td><td>Action: Activate, Use or Return.</td><tr>
<tr class="field"><td>action_key</td><td>character varying</td><td>Key being used activated or returned.</td><tr>
</tbody>
</table>
<a name="domains_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>domains</dfn>:  Records represent either an Active Directory domain or an authenticate system.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name is either "local" or the name of some Active Directory group.</td><tr>
<tr class="field"><td>short_name</td><td>character varying</td><td>An alternate shorter form of the name</td><tr>
<tr class="field"><td>active</td><td>boolean</td><td>Indicates if the domain is active or not.</td><tr>
<tr class="field"><td>family</td><td>character varying</td><td>Either local or ActiveDirectory.</td><tr>
</tbody>
</table>
<a name="dynamic_configs_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>dynamic_configs</dfn>:  Used for dynamic application configuration.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>app</td><td>text</td><td>Application name.</td><tr>
<tr class="field"><td>key</td><td>text</td><td>A unique name for the specific configuration.</td><tr>
<tr class="field"><td>value</td><td>text</td><td>The value of the configuration.</td><tr>
</tbody>
</table>
<a name="extensions_block_list_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>extensions_block_list</dfn>:  Table which stores the block list of extensions on this server</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>luid</td><td>uuid</td><td>The luid which uniquely identifies the extensions blocklist row.</td><tr>
<tr class="field"><td>url</td><td>text</td><td>The url of extension which is blocked.</td><tr>
<tr class="field"><td>active</td><td>boolean</td><td>The check to see if the current entry is active or archived.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Created date for this record.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Modified date for this record.</td><tr>
</tbody>
</table>
<a name="extensions_events_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>extensions_events</dfn>:  Table which stores the events of referenced extensions calculation service</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>luid</td><td>uuid</td><td>The luid which uniquely identifies the extensions events row.</td><tr>
<tr class="field"><td>workbook_luid</td><td>uuid</td><td>The luid which uniquely identifies the workbook.</td><tr>
<tr class="field"><td>site_luid</td><td>uuid</td><td>The luid which uniquely identifies the site.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id which uniquely identifies the site.</td><tr>
<tr class="field"><td>status</td><td>integer</td><td>The status of the current task.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Created date for this record.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Modified date for this record.</td><tr>
</tbody>
</table>
<a name="extensions_instances_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>extensions_instances</dfn>:  Table which stores referenced extensions information calculated from across the workbooks.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>luid</td><td>uuid</td><td>The luid which uniquely identifies the extensions instance row.</td><tr>
<tr class="field"><td>extension_luid</td><td>uuid</td><td>The luid which uniquely identifies the extension.</td><tr>
<tr class="field"><td>workbook_luid</td><td>uuid</td><td>The luid which uniquely identifies the workbook.</td><tr>
<tr class="field"><td>view_luid</td><td>uuid</td><td>The luid which uniquely identifies the view.</td><tr>
<tr class="field"><td>site_luid</td><td>uuid</td><td>The luid which uniquely identifies the site.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id which uniquely identifies the site.</td><tr>
<tr class="field"><td>active</td><td>boolean</td><td>The check to determine if the current entry is active or archived.</td><tr>
<tr class="field"><td>count</td><td>integer</td><td>The count of extensions in views of a given workbook</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Created date for this record.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Modified date for this record.</td><tr>
<tr class="field"><td>id</td><td>bigint</td><td>The unique identifier for this entry.</td><tr>
</tbody>
</table>
<a name="extensions_metadata_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>extensions_metadata</dfn>:  Table which stores Metadata of Extensions.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>luid</td><td>uuid</td><td>The luid which uniquely identifies the extensions metadata row.</td><tr>
<tr class="field"><td>site_luid</td><td>uuid</td><td>The luid which identifies the site.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id which identifies the site.</td><tr>
<tr class="field"><td>extension_id</td><td>text</td><td>The extension id defined in the manifest.</td><tr>
<tr class="field"><td>type</td><td>text</td><td>The type of extension.</td><tr>
<tr class="field"><td>version</td><td>text</td><td>The version of extension.</td><tr>
<tr class="field"><td>manifest_version</td><td>text</td><td>The version of the manifest of the extension.</td><tr>
<tr class="field"><td>min_api_version</td><td>text</td><td>The minimum api version needed for the extension.</td><tr>
<tr class="field"><td>default_locale</td><td>text</td><td>The default locale of the extension.</td><tr>
<tr class="field"><td>name_locale_value</td><td>text</td><td>The name of the extension.</td><tr>
<tr class="field"><td>name_locale_resourceid</td><td>text</td><td>The resource id for the name of the extension.</td><tr>
<tr class="field"><td>desc_locale_value</td><td>text</td><td>The description of the extension.</td><tr>
<tr class="field"><td>dec_locale_resourceid</td><td>text</td><td>The resource id for the description of the extension.</td><tr>
<tr class="field"><td>resources</td><td>text</td><td>The localization resources for the extension.</td><tr>
<tr class="field"><td>permissions</td><td>text</td><td>The permissions defined in the manifest of the extension.</td><tr>
<tr class="field"><td>author_name</td><td>text</td><td>The name of the author of extension.</td><tr>
<tr class="field"><td>author_email</td><td>text</td><td>The email of the author of extension.</td><tr>
<tr class="field"><td>author_org</td><td>text</td><td>The organization of the author of extension.</td><tr>
<tr class="field"><td>author_website</td><td>text</td><td>The website of the author of extension.</td><tr>
<tr class="field"><td>url</td><td>text</td><td>The url of extension.</td><tr>
<tr class="field"><td>icon</td><td>text</td><td>The icon of extension.</td><tr>
<tr class="field"><td>installed</td><td>boolean</td><td>The check to see if the extension is installed.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Created date for this record.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Modified date for this record.</td><tr>
<tr class="field"><td>id</td><td>bigint</td><td>The id of the extension from the manifest.</td><tr>
</tbody>
</table>
<a name="extensions_safe_list_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>extensions_safe_list</dfn>:  Table which stores safe list of extensions that are configured for a given site.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>site_luid</td><td>uuid</td><td>The luid which uniquely identifies the site.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id which uniquely identifies the site.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>The luid which uniquely identifies the extensions safe list row.</td><tr>
<tr class="field"><td>url</td><td>text</td><td>The url of the safe list extension.</td><tr>
<tr class="field"><td>allow_full_data</td><td>boolean</td><td>The full data access permission of an extension.</td><tr>
<tr class="field"><td>prompt_needed</td><td>boolean</td><td>The prompt needed setting of an extension.</td><tr>
<tr class="field"><td>active</td><td>boolean</td><td>The check to determine if the current entry is active or archived.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Created date for this record.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Modified date for this record.</td><tr>
<tr class="field"><td>id</td><td>bigint</td><td>The unique identifier for this entry.</td><tr>
</tbody>
</table>
<a name="extensions_site_settings_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>extensions_site_settings</dfn>:  Table which stores the site specific settings for extensions</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>site_luid</td><td>uuid</td><td>The luid which uniquely identifies the site.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id which uniquely identifies the site.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>The luid which uniquely identifies the extensions settings row.</td><tr>
<tr class="field"><td>extensions_enabled</td><td>boolean</td><td>The check to see if the extensions are enabled on the site.</td><tr>
<tr class="field"><td>default_setting</td><td>boolean</td><td>The check to see if the default settings are enable for extensions</td><tr>
<tr class="field"><td>active</td><td>boolean</td><td>The check to determine if the current entry is active or archived.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Modified date for this record.</td><tr>
<tr class="field"><td>id</td><td>bigint</td><td>The unique identifier for this entry.</td><tr>
<tr class="field"><td>allow_sandboxed</td><td>boolean</td><td>Whether sandboxed extensions are allowed to run</td><tr>
</tbody>
</table>
<a name="external_service_connections_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>external_service_connections</dfn>:  Table which stores the site specific settings for external service connections</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The id which uniquely identifies the connection.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>The luid which uniquely identifies the connection, for security purpose.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site_id which uniquely identifies the site.</td><tr>
<tr class="field"><td>connection_type</td><td>text</td><td>The connection_type identifies the external service type.</td><tr>
<tr class="field"><td>host</td><td>text</td><td>The host identifies host name or ip address of the external server</td><tr>
<tr class="field"><td>port</td><td>integer</td><td>The port identifies port of the external service.</td><tr>
<tr class="field"><td>is_auth_enabled</td><td>boolean</td><td>The is_auth_enabled identifies whether authentication is enabled.</td><tr>
<tr class="field"><td>username</td><td>text</td><td>The username for authentication of the external service, if is_auth_enabled.</td><tr>
<tr class="field"><td>pwd</td><td>text</td><td>The encrypted password for authentication of the external service, if is_auth_enabled.</td><tr>
<tr class="field"><td>is_ssl_enabled</td><td>boolean</td><td>The is_ssl_enabled identifies whether SSL is enabled for the external service.</td><tr>
<tr class="field"><td>asset_key_id</td><td>integer</td><td>The asset_key_id which uniquely identifies the asset key with which secrets in this row are encrypted</td><tr>
</tbody>
</table>
<a name="external_service_site_settings_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>external_service_site_settings</dfn>:  Table which stores the site level settings for external services</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The id which uniquely identifies the site setting.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site_id which uniquely identifies the site.</td><tr>
<tr class="field"><td>extsvc_enabled</td><td>boolean</td><td>The extsvc_enabled identifies whether external service is enabled on certain site.</td><tr>
<tr class="field"><td>time_out</td><td>integer</td><td>The time_out identifies the time out value when connect to external service.</td><tr>
</tbody>
</table>
<a name="extract_sessions_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>extract_sessions</dfn>:  Extracts that have active vizql sessions.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>extract_id</td><td>integer</td><td>Foreign key reference to the extracts table.</td><tr>
<tr class="field"><td>session_guid</td><td>character varying</td><td>Vizql session identifier.</td><tr>
<tr class="field"><td>session_type</td><td>character varying</td><td>One of "Workbook" or "Datasource"</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Date when extract session was created.</td><tr>
<tr class="field"><td>worker_name</td><td>character varying</td><td>Worker on which extract session was created.</td><tr>
</tbody>
</table>
<a name="extracts_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>extracts</dfn>:  Each record corresponds to a directory that contains one or more extract files associated with either a workbook or datasource.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from workbook_id on this table to id on table, <a href="#workbooks_anchor">workbooks</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>If the extracts are associated with a workbook, then this is a foreign key link to that workbook, otherwise it is NULL.</td><tr>
<tr class="field"><td>descriptor</td><td>character varying</td><td>The UUID that is the name of the directory where the extracts are saved.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this record was last updated.</td><tr>
<tr class="field"><td>datasource_id</td><td>integer</td><td>If the extracts are associated with a datasource, then this is a foreign key link to that datasource, otherwise it is NULL.</td><tr>
<tr class="field"><td>encryption_key_id</td><td>character varying</td><td>If not null, id of the extract encryption key (KEK) with which these extracts are encrypted.</td><tr>
</tbody>
</table>
<a name="field_indexability_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>field_indexability</dfn>:  The user-defined NLP indexability rules for fields in datasources</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from published_datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>The unique identifier for this row that is automatically generated on insert</td><tr>
<tr class="field"><td>created_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was created</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was updated</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site on which the datasource is published</td><tr>
<tr class="field"><td>published_datasource_id</td><td>integer</td><td>The id of the published datasource on the site</td><tr>
<tr class="field"><td>field_graph_id</td><td>text</td><td>The graph id of the field in the datasource</td><tr>
<tr class="field"><td>indexing_mode</td><td>text</td><td>The user-specified behavior for NLP to index the field</td><tr>
</tbody>
</table>
<a name="flow_events_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flow_events</dfn>:  Each row represents an event affecting a flow</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key of the event</td><tr>
<tr class="field"><td>flow_id</td><td>integer</td><td>Foreign key to the corresponding flow</td><tr>
<tr class="field"><td>event_type</td><td>integer</td><td>Event type integer value</td><tr>
<tr class="field"><td>event_created_at</td><td>timestamp without time zone</td><td>Time of event creation</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site ID of flow event</td><tr>
</tbody>
</table>
<a name="flow_input_steps_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flow_input_steps</dfn>:  Each record represents an individual input step from a published Tableau Prep flow.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from data_connection_id on this table to id on table, <a href="#data_connections_anchor">data_connections</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_id on this table to id on table, <a href="#flows_anchor">flows</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record of the input step.</td><tr>
<tr class="field"><td>step_id</td><td>character varying</td><td>Unique id for the input step, pulled from the TFL file.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the input step, pulled  from TFL.</td><tr>
<tr class="field"><td>flow_id</td><td>integer</td><td>The FK to flows for the flow where this input step exists.</td><tr>
<tr class="field"><td>data_connection_id</td><td>integer</td><td> The FK to data_connections.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site associated with the flow where this input step exists.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>A unique, immutable identifier for the input step.</td><tr>
</tbody>
</table>
<a name="flow_models_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flow_models</dfn>:  Each row contains model metadata for a flow</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_id on this table to id on table, <a href="#flows_anchor">flows</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key of the model metadata</td><tr>
<tr class="field"><td>flow_id</td><td>integer</td><td>Foreign key to the corresponding flow</td><tr>
<tr class="field"><td>data_id</td><td>character varying</td><td>Data store ID of model</td><tr>
<tr class="field"><td>generated_at</td><td>timestamp without time zone</td><td>Time of model generation</td><tr>
<tr class="field"><td>stale_at</td><td>timestamp without time zone</td><td>Model expiration time</td><tr>
</tbody>
</table>
<a name="flow_output_step_runs_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flow_output_step_runs</dfn>:  Each record represents a run of an output step of a flow.  See flow_runs for per-flow run history.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_id on this table to id on table, <a href="#flows_anchor">flows</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_output_step_id on this table to id on table, <a href="#flow_output_steps_anchor">flow_output_steps</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_run_id on this table to id on table, <a href="#flow_runs_anchor">flow_runs</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>flow_id</td><td>integer</td><td>Foreign key to the flow that was run.</td><tr>
<tr class="field"><td>flow_run_id</td><td>integer</td><td>Foreign key to the flow_runs table which gives the flow-level run history.</td><tr>
<tr class="field"><td>flow_output_step_id</td><td>integer</td><td>Foreign key to the flow_output_steps table.</td><tr>
<tr class="field"><td>started_at</td><td>timestamp without time zone</td><td>When the flow processing system began executing the execution plan associated with this output step.</td><tr>
<tr class="field"><td>completed_at</td><td>timestamp without time zone</td><td>When the flow processing system completed publishing the output of this output step.</td><tr>
<tr class="field"><td>progress</td><td>integer</td><td>Can be used to indicate percent complete for the job, but in most cases simply gets set to 100 when the job is completed.  -1 means pending.</td><tr>
<tr class="field"><td>finish_code</td><td>integer</td><td>Whether or not the job succeeded. 0 for success; 1 for failure; 2 for cancelled.</td><tr>
<tr class="field"><td>rows_produced</td><td>bigint</td><td>The count of rows produced.</td><tr>
<tr class="field"><td>notes</td><td>character varying</td><td>Can be used to store additional information about the running of the job.  Often errors.</td><tr>
<tr class="field"><td>is_incremental</td><td>boolean</td><td>Whether the run was incremental in run history</td><tr>
</tbody>
</table>
<a name="flow_output_steps_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flow_output_steps</dfn>:  Each record represents an individual output step from a published Maestro flow.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from data_connection_id on this table to id on table, <a href="#data_connections_anchor">data_connections</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from datarole_id on this table to id on table, <a href="#data_roles_anchor">data_roles</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_id on this table to id on table, <a href="#flows_anchor">flows</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record of the output step.</td><tr>
<tr class="field"><td>step_id</td><td>character varying</td><td>Unique id for the output step, pulled from the TFL file.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the output step from TFL.</td><tr>
<tr class="field"><td>flow_id</td><td>integer</td><td>The FK to flows for the flow where this output step exists.</td><tr>
<tr class="field"><td>data_connection_id</td><td>integer</td><td>The FK to data_connections.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site associated with the flow where this output step exists.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>A unique, immutable identifier for the output step.</td><tr>
<tr class="field"><td>is_deleted</td><td>boolean</td><td>Whether this flow output step is deleted or not.</td><tr>
<tr class="field"><td>datasource_id</td><td>integer</td><td>id of associated datasource</td><tr>
<tr class="field"><td>datarole_id</td><td>integer</td><td>id of associated datarole</td><tr>
<tr class="field"><td>is_incremental_enabled</td><td>boolean</td><td>Whether to give user the option to run this output incrementally</td><tr>
<tr class="field"><td>is_incremental_default</td><td>boolean</td><td>Whether running this output incrementally is the default option.</td><tr>
<tr class="field"><td>output_operation_type</td><td>integer</td><td>Whether to create-1, append-2 or truncate-3 the output when run type is full refresh.</td><tr>
<tr class="field"><td>incremental_output_operation_type</td><td>integer</td><td>Whether to create-1, append-2 or truncate-3 the output when run type is incremental refresh.</td><tr>
</tbody>
</table>
<a name="flow_run_errors_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flow_run_errors</dfn>:  Each record represents an individual flow run error which has detailed information about the error</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_id on this table to id on table, <a href="#flows_anchor">flows</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_output_step_id on this table to id on table, <a href="#flow_output_steps_anchor">flow_output_steps</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_output_step_run_id on this table to id on table, <a href="#flow_output_step_runs_anchor">flow_output_step_runs</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_run_id on this table to id on table, <a href="#flow_runs_anchor">flow_runs</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record of the flow run error.</td><tr>
<tr class="field"><td>flow_id</td><td>integer</td><td>The FK to flows for the flow which this run error is about.</td><tr>
<tr class="field"><td>flow_output_step_id</td><td>integer</td><td>The FK to flow output steps for the output step which this run error is about.</td><tr>
<tr class="field"><td>flow_run_id</td><td>integer</td><td>The FK to flow runs for the flow run where this error got reported from.</td><tr>
<tr class="field"><td>flow_output_step_run_id</td><td>integer</td><td>The FK to flow output step runs for the flow output step run where this error got reported from.</td><tr>
<tr class="field"><td>error_type</td><td>character varying</td><td>The type of this error</td><tr>
<tr class="field"><td>object_id</td><td>character varying</td><td>The object id this error is about, could be null if the error is not about specific object but the entire flow.</td><tr>
<tr class="field"><td>object_type</td><td>character varying</td><td>The type of the object, like node or connection in the maestro doc</td><tr>
<tr class="field"><td>object_name</td><td>character varying</td><td>The name of the object according to the maestro doc, used to display name in clients</td><tr>
<tr class="field"><td>error_message_params</td><td>text</td><td>string params for the flow run error messages, formatted as yaml.</td><tr>
<tr class="field"><td>exception_class</td><td>text</td><td>the class name of the original exception of the flow run error</td><tr>
<tr class="field"><td>exception_stacktrace</td><td>text</td><td>the stacktrace of the original exception of the flow run error</td><tr>
<tr class="field"><td>flowprocessor_raw_error_message</td><td>text</td><td>the raw error message in English from flow processor, if the flow run error is originated from flow processor</td><tr>
</tbody>
</table>
<a name="flow_run_spec_output_steps_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flow_run_spec_output_steps</dfn>:  Each record represents an individual output step in a flow run specification.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_output_step_id on this table to id on table, <a href="#flow_output_steps_anchor">flow_output_steps</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_run_spec_id on this table to id on table, <a href="#flow_run_specs_anchor">flow_run_specs</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record of the flow run spec output step.</td><tr>
<tr class="field"><td>flow_run_spec_id</td><td>integer</td><td>The FK to flow_run_spec for the flow run spec which this output step belongs to.</td><tr>
<tr class="field"><td>flow_output_step_id</td><td>integer</td><td>The FK to flow_output_steps table for the flow output step which this Id refers to .</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site associated with the flow which the entire flow run spec is about.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>A unique, immutable identifier for the flow run spec output step.</td><tr>
<tr class="field"><td>is_incremental</td><td>boolean</td><td>Whether user chooses incremental run in scheduler</td><tr>
</tbody>
</table>
<a name="flow_run_specs_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flow_run_specs</dfn>:  Each record represents an individual specification about how a Tableau Prep flow should be run</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_id on this table to id on table, <a href="#flows_anchor">flows</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record of the flow run spec.</td><tr>
<tr class="field"><td>flow_id</td><td>integer</td><td>The FK to flows for the flow which this run spec is about.</td><tr>
<tr class="field"><td>trigger_type</td><td>character varying</td><td>The trigger type of this flow run, currently 0 for scheduled run, 1 for ad-hoc run</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site associated with the flow which this run spec is about.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td> A unique, immutable identifier for the flow run spec.</td><tr>
<tr class="field"><td>run_all_outputs</td><td>boolean</td><td>Whether to run flow with all outputs, future outputs included</td><tr>
<tr class="field"><td>is_incremental</td><td>boolean</td><td>Whether to force all output nodes run incrementally (true) or full refresh (false) or unspecified (null).</td><tr>
</tbody>
</table>
<a name="flow_runs_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flow_runs</dfn>:  Each record represents a run of a flow.  See flow_output_step_runs for per-output-step run history.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_id on this table to id on table, <a href="#flows_anchor">flows</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_run_spec_id on this table to id on table, <a href="#flow_run_specs_anchor">flow_run_specs</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from task_id on this table to id on table, <a href="#tasks_anchor">tasks</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>flow_id</td><td>integer</td><td>Foreign key to the flow that was run.</td><tr>
<tr class="field"><td>flow_processor_run_id</td><td>character varying</td><td>Identifier for a given run from the flow processing system.</td><tr>
<tr class="field"><td>flow_run_spec_id</td><td>integer</td><td>Identifier for the specification of a given run.</td><tr>
<tr class="field"><td>started_at</td><td>timestamp without time zone</td><td>When the flow processing system began execution.</td><tr>
<tr class="field"><td>completed_at</td><td>timestamp without time zone</td><td>When the flow processing system completed execution.</td><tr>
<tr class="field"><td>task_id</td><td>integer</td><td>Foreign key to the task that triggered this flow run (if one exists).</td><tr>
<tr class="field"><td>trigger_type</td><td>character varying</td><td>Specifies what caused this flow run to occur.  Currently 0 for scheduled run (task), 1 for ad-hoc run.</td><tr>
<tr class="field"><td>progress</td><td>integer</td><td>Can be used to indicate percent complete for the job, but in most cases simply gets set to 100 when the job is completed.  -1 means pending.</td><tr>
<tr class="field"><td>finish_code</td><td>integer</td><td>Whether or not the job succeeded. 0 for success; 1 for failure; 2 for cancelled.</td><tr>
<tr class="field"><td>notes</td><td>character varying</td><td>Can be used to store additional information about the running of the job.  Often errors.</td><tr>
<tr class="field"><td>background_job_id</td><td>integer</td><td>ID of the background job associated with this flow run</td><tr>
</tbody>
</table>
<a name="flow_runtime_owners_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flow_runtime_owners</dfn>:  Table to keep track of flow/flow output step owner at flow run time. Used to calculate derived permission on flow outputs.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_id on this table to id on table, <a href="#flows_anchor">flows</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_output_step_id on this table to id on table, <a href="#flow_output_steps_anchor">flow_output_steps</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from owner_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from table_id on this table to id on table, <a href="#table_assets_anchor">table_assets</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key.</td><tr>
<tr class="field"><td>flow_id</td><td>integer</td><td>Flow id.</td><tr>
<tr class="field"><td>flow_output_step_id</td><td>integer</td><td>Flow output step id for this flow runtime owner.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this flow runtime owner record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this flow runtime owner record was updated.</td><tr>
<tr class="field"><td>table_id</td><td>integer</td><td>Table related to this flow runtime owner.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>Owner for this flow/table/output step.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site this flow runtime owner belongs to.</td><tr>
</tbody>
</table>
<a name="flow_versions_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flow_versions</dfn>:  flow versions saved on server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from flow_id on this table to id on table, <a href="#flows_anchor">flows</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The id of a version. Primary key.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Reference to entry in sites table. Indicates the site to which this flow version belongs to.</td><tr>
<tr class="field"><td>flow_id</td><td>integer</td><td>A foreign key to the flows table. Reference to flow.</td><tr>
<tr class="field"><td>publisher_id</td><td>integer</td><td>Reference to user in site users table. User who published this version. Can point to deleted user.</td><tr>
<tr class="field"><td>version_number</td><td>integer</td><td>The version number.</td><tr>
<tr class="field"><td>published_at</td><td>timestamp without time zone</td><td>The time when this version was initially published. Copied from flow record last_updated field at the time of being overwritten.</td><tr>
<tr class="field"><td>size</td><td>bigint</td><td>The size, in bytes, of this version of flow.</td><tr>
<tr class="field"><td>content_key</td><td>character varying</td><td>Key of the flow as string</td><tr>
<tr class="field"><td>sos_type</td><td>character varying</td><td>The SOS data type under which this version document is stored, or null if it is not stored in SOS.</td><tr>
<tr class="field"><td>encryption_key_id</td><td>character varying</td><td>If not null, id of the flow version encryption key (KEK) with which data in this flow is encrypted.</td><tr>
<tr class="field"><td>data_engine_extracts</td><td>boolean</td><td>True means the data was supplied in the form of a Tableau data extract, though the original source of the data may be known to reside elsewhere.</td><tr>
<tr class="field"><td>extract_encryption_state</td><td>smallint</td><td>If not null, encryption state of the extracts. null or 0 - unencrypted, 1 - encrypted, 2 - pending encryption, 3 - pending decryption, 5 - pending rekey</td><tr>
</tbody>
</table>
<a name="flows_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>flows</dfn>:  Each record represents a Tableau Prep flow that exists on Tableau Server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from owner_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from project_id on this table to id on table, <a href="#projects_anchor">projects</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the flow record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the published flow.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>A unique, immutable identifier for the flow.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>The user id of the owner/publisher of the flow.</td><tr>
<tr class="field"><td>project_id</td><td>integer</td><td>The id of the project that this flow is associated with.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site that this flow is associated with.</td><tr>
<tr class="field"><td>data_id</td><td>character varying</td><td>The identifier for the data of the .tfl file associated with this flow.</td><tr>
<tr class="field"><td>reduced_data_id</td><td>character varying</td><td>Unique ID used to identify the flow's packaged files (removed from the .TFLX and stored separately).</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time the record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time the record was updated.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>The description of the flow.</td><tr>
<tr class="field"><td>lock_version</td><td>integer</td><td>Used to implement "optimistic locking." Do not set this or mess with it, its all handled automatically.</td><tr>
<tr class="field"><td>size</td><td>bigint</td><td>The size of the flow file in bytes</td><tr>
<tr class="field"><td>embedded</td><td>text</td><td>The encrypted keychain with credentials stored with the flow.</td><tr>
<tr class="field"><td>asset_key_id</td><td>integer</td><td>The asset encryption key used to encrypt the keychain in the embedded column.</td><tr>
<tr class="field"><td>thumbnail_id</td><td>character varying</td><td>The identifier for the thumbnail data.</td><tr>
<tr class="field"><td>last_published_at</td><td>timestamp without time zone</td><td>The last time the flow file was published.</td><tr>
<tr class="field"><td>content_version</td><td>integer</td><td>Version of the flow file, increments on each publish.</td><tr>
<tr class="field"><td>document_version</td><td>character varying</td><td>The internal version of the .tfl file associated with this record.</td><tr>
<tr class="field"><td>file_type</td><td>character varying</td><td>Whether this flow file is a tfl or tflx.</td><tr>
<tr class="field"><td>graph_image_id</td><td>character varying</td><td>Locator id for the graph image of the flow in SOS</td><tr>
<tr class="field"><td>encryption_key_id</td><td>character varying</td><td>If not null, id of the flow encryption key (KEK) with which data in this flow is encrypted.</td><tr>
<tr class="field"><td>data_engine_extracts</td><td>boolean</td><td>True means the data was supplied in the form of a Tableau data extract, though the original source of the data may be known to reside elsewhere.</td><tr>
<tr class="field"><td>extract_encryption_state</td><td>smallint</td><td>If not null, encryption state of the extracts. null or 0 - unencrypted, 1 - encrypted, 2 - pending encryption, 3 - pending decryption, 5 - pending rekey</td><tr>
<tr class="field"><td>is_deleted</td><td>boolean</td><td>When is_deleted is true then flow is deleted, no active job or user request can see it. It is considered to reside in Recycle Bin until either restored or permanently deleted.</td><tr>
</tbody>
</table>
<a name="geocoding_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>geocoding</dfn>:  Information about geocoding databases.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Auto-generated id from postgres; also the primary key for the table.</td><tr>
<tr class="field"><td>sos_id</td><td>text</td><td>Storage ID of this database.</td><tr>
<tr class="field"><td>version</td><td>text</td><td>Version of the database.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Timestamp when this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Same as created_at.</td><tr>
<tr class="field"><td>size</td><td>bigint</td><td>Size of the geocoding database.</td><tr>
</tbody>
</table>
<a name="group_users_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>group_users</dfn>:  Serves as a many to many linking mechanism between users and groups. A user can belong to multiple groups, and a group can contain multiple users.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from group_id on this table to id on table, <a href="#groups_anchor">groups</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>group_id</td><td>integer</td><td>A foreign key reference to an entry in the groups table.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>A foreign key reference to an entry in the users table.</td><tr>
</tbody>
</table>
<a name="groups_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>groups</dfn>:  A grouping of users. Can be locally created or imported from Active Directory.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from domain_id on this table to id on table, <a href="#domains_anchor">domains</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name that was given to the group.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this record was last updated.</td><tr>
<tr class="field"><td>system</td><td>boolean</td><td>Indicates if this group was created by Tableau itself, or if it was created by user action.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>A foreign key link to the user who owns this group.</td><tr>
<tr class="field"><td>domain_id</td><td>integer</td><td>A foreign key link to the domain that corresponds to this group.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>A foreign key link to the site to which this group belongs.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>An identifier that is unique in combination with the site_id.</td><tr>
<tr class="field"><td>minimum_site_role</td><td>character varying</td><td>The minimum site role given to members of the AD group</td><tr>
<tr class="field"><td>last_synchronized</td><td>timestamp without time zone</td><td>Last time that synchronization for an AD group was completed</td><tr>
<tr class="field"><td>minimum_site_role_id</td><td>integer</td><td>the id of the minimum site role of the group</td><tr>
<tr class="field"><td>grant_license_mode</td><td>character varying</td><td>When to grant a license to the users in the group. Can either by ON_SYNC or ON_LOGIN</td><tr>
</tbody>
</table>
<a name="hist_capabilities_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_capabilities</dfn>:  Records the most useful information about a capability that was relevant at the time of the event (see capabilities table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>capability_id</td><td>integer</td><td>A foreign key reference to an entry in the capabilities table. This could be NULL if the matching record in the capabilities table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>This (or the id) is how the capability is referred to by code.</td><tr>
<tr class="field"><td>allow</td><td>boolean</td><td>Whether or not the capability is allowed.</td><tr>
</tbody>
</table>
<a name="hist_column_assets_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_column_assets</dfn>:  Records the most useful information about a column that was relevant at the time of the event (see column_assets table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>column_id</td><td>integer</td><td>A foreign key reference to an entry in the columns table. This could be NULL if the matching record in the column_assets table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the column.</td><tr>
</tbody>
</table>
<a name="hist_comments_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_comments</dfn>:  Records the most useful information about a comment that was relevant at the time of the event (see comments table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>comment_id</td><td>integer</td><td>A foreign key link to the primary key for the comments record. This could be NULL if the matching record in the comments table was deleted since this record was created.</td><tr>
<tr class="field"><td>comment</td><td>text</td><td>Comment text.</td><tr>
</tbody>
</table>
<a name="hist_configs_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_configs</dfn>:  Can be used to record information about configuration that was in effect at the time of the historical event.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>key</td><td>text</td><td>A unique name for the specific configuration.</td><tr>
<tr class="field"><td>value</td><td>text</td><td>The value of the configuration.</td><tr>
</tbody>
</table>
<a name="hist_data_connections_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_data_connections</dfn>:  Records the most useful information about a data connection that was relevant at the time of the event (see data_connections table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>data_connection_id</td><td>integer</td><td>A foreign key reference to an entry in the data_connections table. This could be NULL if the matching record in the data_connections table was deleted since this record was created.</td><tr>
<tr class="field"><td>server</td><td>text</td><td>DNS server name to connect to.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>Unique identifier for this data_connection.</td><tr>
<tr class="field"><td>dbname</td><td>text</td><td>The database name to which the particular connection is linked.</td><tr>
<tr class="field"><td>table_name</td><td>text</td><td>The name of the table in the database that this connection connects to.</td><tr>
</tbody>
</table>
<a name="hist_data_roles_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_data_roles</dfn>:  Records the most useful information about a data role that was relevant at the time of the event (see data_roles table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>data_role_id</td><td>integer</td><td>A foreign key reference to an entry in the data_roles table. This could be NULL if the matching record in the data_roles table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the data_role.</td><tr>
</tbody>
</table>
<a name="hist_database_assets_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_database_assets</dfn>:  Records the most useful information about a database that was relevant at the time of the event (see database_assets table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>database_id</td><td>integer</td><td>A foreign key reference to an entry in the databases table. This could be NULL if the matching record in the database_assets table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the database.</td><tr>
</tbody>
</table>
<a name="hist_datasources_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_datasources</dfn>:  Records the most useful information about a data source that was relevant at the time of the event (see datasources table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>datasource_id</td><td>integer</td><td>A foreign key reference to an entry in the datasources table. This could be NULL if the matching record in the datasources table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The name of the published datasource.</td><tr>
<tr class="field"><td>repository_url</td><td>text</td><td>Uniquely identifies a datasource. More or less consists of a slightly modified name, but not totally obviously, especially in the presence of non-ASCII characters. Used in URLs meant to access this datasource.</td><tr>
<tr class="field"><td>size</td><td>bigint</td><td>The size in bytes of the datasource.</td><tr>
<tr class="field"><td>revision</td><td>text</td><td>Increments each time a new version of the datasource is published.</td><tr>
<tr class="field"><td>using_remote_query_agent</td><td>boolean</td><td>Whether this datasource is using remote query agent.</td><tr>
<tr class="field"><td>remote_query_agent_name</td><td>text</td><td>The remote query agent name used by the data source.</td><tr>
<tr class="field"><td>is_certified</td><td>boolean</td><td>Whether or not this datasource is certified.</td><tr>
<tr class="field"><td>certification_note</td><td>text</td><td>Explanation for the certification status of this datasource.</td><tr>
</tbody>
</table>
<a name="hist_flows_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_flows</dfn>:  Records the most useful information about a flow that was relevant at the time of the event (see flows table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>flow_id</td><td>integer</td><td>A foreign key reference to an entry in the flows table. This could be NULL if the matching record in the flows table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the flow.</td><tr>
<tr class="field"><td>size</td><td>bigint</td><td>The number of bytes used in storing the flow information.</td><tr>
<tr class="field"><td>content_version</td><td>character varying</td><td>Version of the flow file, increments by 1 on each publish.</td><tr>
</tbody>
</table>
<a name="hist_groups_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_groups</dfn>:  Records the most useful information about a group that was relevant at the time of the event (see groups table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>group_id</td><td>integer</td><td>A foreign key reference to an entry in the groups table. This could be NULL if the matching record in the groups table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The name that was given to the group.</td><tr>
<tr class="field"><td>domain_name</td><td>text</td><td>The name is either "local" or the name of some Active Directory group.</td><tr>
</tbody>
</table>
<a name="hist_licensing_roles_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_licensing_roles</dfn>:  Records the most useful information about a licensing role that was relevant at the time of the event (see licensing_roles table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>licensing_role_id</td><td>integer</td><td>A foreign key reference to an entry in the licensing_roles table. This could be NULL if the matching record in the licensing_roles table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The name of the licensing role.</td><tr>
</tbody>
</table>
<a name="hist_metrics_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_metrics</dfn>:  Records the most useful information about a metric that was relevant at the time of the event (see metrics table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>metric_id</td><td>integer</td><td>A foreign key reference to an entry in the metrics table. This could be NULL if the matching record in the metrics table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the metric.</td><tr>
</tbody>
</table>
<a name="hist_projects_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_projects</dfn>:  Records the most useful information about a project that was relevant at the time of the event (see projects table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>project_id</td><td>integer</td><td>A foreign key reference to an entry in the projects table. This could be NULL if the matching record in the projects table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The name of the project.</td><tr>
</tbody>
</table>
<a name="hist_remote_agents_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_remote_agents</dfn>:  Records the most useful information about a remote agent that was relevant at the time of the event.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>remote_agent_id</td><td>integer</td><td>A reference to an entry in the remote_agents table. This could be NULL if the matching record in the datasources table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The value of remote_agents.name at the time of the event.</td><tr>
</tbody>
</table>
<a name="hist_schedules_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_schedules</dfn>:  Records the most useful information about a schedule that was relevant at the time of the event (see schedules table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from schedule_id on this table to id on table, <a href="#schedules_anchor">schedules</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>schedule_id</td><td>integer</td><td>A foreign key reference to an entry in the schedules table. This could be NULL if the matching record in the schedules table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>A schedule can be given a name, which is stored here.</td><tr>
<tr class="field"><td>schedule_type</td><td>integer</td><td>One of 0 (Hourly), 1 (Daily), 2 (Weekly), 3 (Monthly).</td><tr>
<tr class="field"><td>priority</td><td>integer</td><td>Priority can range from 1 to 100, with lower values corresponding to higher priority.</td><tr>
<tr class="field"><td>scheduled_action</td><td>integer</td><td>Used to classify schedules into one of two categories: 0 (Extract related) 1 (Subscription related)</td><tr>
<tr class="field"><td>is_serial</td><td>boolean</td><td>Set to true if the schedule must be run serially with other jobs in the same serial collection.</td><tr>
<tr class="field"><td>day_of_week_mask</td><td>integer</td><td>Indicates which day of the week this schedule will run. The information is encoded in the given integer. To interpret it, convert the integer to binary. The days of the week correspond to Sunday : 1, Monday : 10, Tuesday : 100, Wednesday : 1000, Thursday : 10000, Friday : 100000, Saturday : 1000000.</td><tr>
<tr class="field"><td>day_of_month_mask</td><td>integer</td><td>Indicates which day of the month this schedule will run. The information is encoded in the given integer. To interpret it, convert the integer to binary. The days of the month correspond to 1st : 1, 2nd: 10, 3rd: 100, 4th: 1000, 5th: 10000, etc.</td><tr>
<tr class="field"><td>start_at_minute</td><td>integer</td><td>The minute following the start of the designated time period implied by the schedule_type. For example, for a daily schedule, this would be number of minutes past midnight at the start of the day. For hourly, it would be the number of minutes past the beginning of the hour.</td><tr>
<tr class="field"><td>minute_interval</td><td>integer</td><td>Once the schedule triggers, it will retrigger at this interval during the time period implied by the schedule_type or until end_at_minute, or end_schedule_at.</td><tr>
<tr class="field"><td>end_at_minute</td><td>integer</td><td>The minute following the start of the designated time period implied schedule_type, at which the schedule should stop triggering.</td><tr>
<tr class="field"><td>end_schedule_at</td><td>timestamp without time zone</td><td>Used to indicate a point in time, after which the schedule should never trigger.</td><tr>
</tbody>
</table>
<a name="hist_sites_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_sites</dfn>:  Records the most useful information about a site that was relevant at the time of the event (see sites table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>A foreign key reference to an entry in the sites table. This could be NULL if the matching record in the sites table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The name of the site.</td><tr>
<tr class="field"><td>url_namespace</td><td>text</td><td>String used in the construction of URLs that target this site.</td><tr>
</tbody>
</table>
<a name="hist_table_assets_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_table_assets</dfn>:  Records the most useful information about a table that was relevant at the time of the event (see table_assets table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>table_id</td><td>integer</td><td>A foreign key reference to an entry in the tables table. This could be NULL if the matching record in the table_assets table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the table.</td><tr>
</tbody>
</table>
<a name="hist_tags_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_tags</dfn>:  Records the most useful information about a tag that was relevant at the time of the event (see tags table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>tag_id</td><td>integer</td><td>A foreign key reference to an entry in the tags table. This could be NULL if the matching record in the tags table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The value of the tag.</td><tr>
</tbody>
</table>
<a name="hist_tasks_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_tasks</dfn>:  Records the most useful information about a task that was relevant at the time of the event (see tasks table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>task_id</td><td>integer</td><td>A foreign key reference to an entry in the tasks table. This could be NULL if the matching record in the tasks table was deleted since this record was created.</td><tr>
<tr class="field"><td>type</td><td>text</td><td>Identifies the specific type of task that this is. This is how the system identifies what code to execute when this task is to be run.</td><tr>
<tr class="field"><td>priority</td><td>integer</td><td>An integer where 0 is the highest priority and 10 is the default priority. Other values can be set if desired). Higher priority jobs should be processed earlier.</td><tr>
</tbody>
</table>
<a name="hist_users_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_users</dfn>:  Records the most useful information about a user and corresponding system_user that was relevant at the time of the event (see users and system_users tables).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from hist_licensing_role_id on this table to id on table, <a href="#hist_licensing_roles_anchor">hist_licensing_roles</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>A foreign key reference to an entry in the users table. This could be NULL if the matching record in the users table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The username of the user.</td><tr>
<tr class="field"><td>domain_name</td><td>text</td><td>The name is either "local" or the name of some Active Directory group.</td><tr>
<tr class="field"><td>email</td><td>text</td><td>The email of the user.</td><tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>A foreign key reference to the system user that this user is identified with. This could be NULL if the matching record in the system_users table was deleted since this record was created.</td><tr>
<tr class="field"><td>system_admin_level</td><td>integer</td><td>Indicates if the user is a system administrator. 10 : system admin, 0 : not a system admin</td><tr>
<tr class="field"><td>hist_licensing_role_id</td><td>integer</td><td>A foreign key reference to the licensing_role_id column for a record in the hist_licensing_roles table.</td><tr>
<tr class="field"><td>site_admin_level</td><td>integer</td><td>Indicates if this user is a site admin. 5 : site admin, 0 : not site admin.</td><tr>
<tr class="field"><td>publisher_tristate</td><td>integer</td><td>Deprecated. Column will be removed in a future release.</td><tr>
<tr class="field"><td>site_role_id</td><td>integer</td><td>The ID of the site role for this user. The mapping is described in the comment for the column users.site_role_id.</td><tr>
</tbody>
</table>
<a name="hist_views_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_views</dfn>:  Records the most useful information about a view that was relevant at the time of the event (see views table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>view_id</td><td>integer</td><td>A foreign key reference to an entry in the views table. This could be NULL if the matching record in the views table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The name of the view.</td><tr>
<tr class="field"><td>repository_url</td><td>text</td><td>Uniquely identifies a view. More or less composed of workbook and sheet names, but not totally obviously, especially in the presence of non-ASCII characters. Used in URLs meant to access this view.</td><tr>
<tr class="field"><td>revision</td><td>text</td><td>Starts with 1.0 and increments by 0.1 with each republication.</td><tr>
</tbody>
</table>
<a name="hist_workbooks_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>hist_workbooks</dfn>:  Records the most useful information about a workbook that was relevant at the time of the event (see workbooks table).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>A foreign key reference to an entry in the workbooks table. This could be NULL if the matching record in the workbooks table was deleted since this record was created.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The name of the workbook.</td><tr>
<tr class="field"><td>repository_url</td><td>text</td><td>A unique name for the workbook, derived from the ASCII characters in the name, which can be used in URLs to refer to this workbook.</td><tr>
<tr class="field"><td>size</td><td>bigint</td><td>The number of bytes used in storing the workbook information.</td><tr>
<tr class="field"><td>revision</td><td>text</td><td>Starts with 1.0 and increments by 0.1 with each republication.</td><tr>
</tbody>
</table>
<a name="historical_disk_usage_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>historical_disk_usage</dfn>:  Records historical disk utilization by Tableau Server for storage monitoring.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>worker_id</td><td>character varying</td><td>Hostname of the worker the resource exists on.</td><tr>
<tr class="field"><td>resource_type</td><td>integer</td><td>Type of resource being monitored. 0 (Entire disk).</td><tr>
<tr class="field"><td>path</td><td>character varying</td><td>Disk path of the monitored resource.</td><tr>
<tr class="field"><td>total_space_bytes</td><td>bigint</td><td>Total disk size in bytes.</td><tr>
<tr class="field"><td>used_space_bytes</td><td>bigint</td><td>Disk space used by the resource in bytes.</td><tr>
<tr class="field"><td>state</td><td>integer</td><td>Free space state of the disk. One of 1 (Normal), 2 (Warning), 3 (Critical).</td><tr>
<tr class="field"><td>record_timestamp</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
</tbody>
</table>
<a name="historical_event_types_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>historical_event_types</dfn>:  The types of historical events which can be recorded.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>type_id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The name of the specific event that occurred.</td><tr>
<tr class="field"><td>action_type</td><td>text</td><td>Events are grouped together into action types, such as Create, Access, Update and Delete.</td><tr>
</tbody>
</table>
<a name="historical_events_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>historical_events</dfn>:  This table is the heart of the cluster of tables devoted to historical event auditing. For each event, a record is created on this table. The type of event is indicated through historical_event_type_id, which links to the historical_event_types table. Other information relevant to the event is linked through some of the other id fields in this table.  Note these links go to other hist* tables, which allows the event to refer to things that might have since been deleted from the regular tables.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from historical_event_type_id on this table to type_id on table, <a href="#historical_event_types_anchor">historical_event_types</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>historical_event_type_id</td><td>integer</td><td>A foreign key reference to an entry in the historical_event_types table.</td><tr>
<tr class="field"><td>worker</td><td>text</td><td>The name or IP address of the worker where the event occurred.</td><tr>
<tr class="field"><td>is_failure</td><td>boolean</td><td>Indicates if the event was an attempted action that failed.  May not be implemented across all events.</td><tr>
<tr class="field"><td>details</td><td>text</td><td>Detail text about the event.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Datetime that the event was recorded.</td><tr>
<tr class="field"><td>hist_actor_user_id</td><td>integer</td><td>A reference to the primary key id column for the record in the hist_users table of the user who initiated the event.</td><tr>
<tr class="field"><td>hist_target_user_id</td><td>integer</td><td>A reference to the primary key id column for the record in the hist_users table of the user who was the target of the event.</td><tr>
<tr class="field"><td>hist_actor_site_id</td><td>integer</td><td>A reference to the primary key id column for the record in the hist_sites table where the event was initiated.</td><tr>
<tr class="field"><td>hist_target_site_id</td><td>integer</td><td>A reference to the primary key id column for the record in the hist_sites table which was the target of the event.</td><tr>
<tr class="field"><td>hist_project_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_projects table.</td><tr>
<tr class="field"><td>hist_workbook_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_workbooks table.</td><tr>
<tr class="field"><td>hist_view_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_views table.</td><tr>
<tr class="field"><td>hist_datasource_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_datasources table.</td><tr>
<tr class="field"><td>hist_comment_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_comments table.</td><tr>
<tr class="field"><td>hist_tag_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_tags table.</td><tr>
<tr class="field"><td>hist_group_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_groups table.</td><tr>
<tr class="field"><td>hist_licensing_role_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_licensing_roles table.</td><tr>
<tr class="field"><td>hist_schedule_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_schedules table.</td><tr>
<tr class="field"><td>hist_task_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_tasks table.</td><tr>
<tr class="field"><td>hist_data_connection_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_data_connections table.</td><tr>
<tr class="field"><td>hist_config_id</td><td>integer</td><td>A foreign key reference to the config_id column for a record in the hist_configs table.</td><tr>
<tr class="field"><td>hist_capability_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_capabilities table.</td><tr>
<tr class="field"><td>hist_remote_agent_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_remote_agents table.</td><tr>
<tr class="field"><td>hist_flow_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_flows table.</td><tr>
<tr class="field"><td>hist_data_role_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_data_roles table.</td><tr>
<tr class="field"><td>hist_database_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_database_assets table.</td><tr>
<tr class="field"><td>hist_table_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_table_assets table.</td><tr>
<tr class="field"><td>hist_column_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_column_assets table.</td><tr>
<tr class="field"><td>hist_metric_id</td><td>integer</td><td>A reference to the primary key id column for a record in the hist_metrics table.</td><tr>
</tbody>
</table>
<a name="http_requests_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>http_requests</dfn>:  Each record represents a request received by Tableau Server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this table.</td><tr>
<tr class="field"><td>controller</td><td>character varying</td><td>The part of the application that received the request.</td><tr>
<tr class="field"><td>action</td><td>character varying</td><td>The action requested.</td><tr>
<tr class="field"><td>http_referer</td><td>character varying</td><td>The referrer.</td><tr>
<tr class="field"><td>http_user_agent</td><td>character varying</td><td>The agent string supplied by the client.</td><tr>
<tr class="field"><td>http_request_uri</td><td>text</td><td>The requested URI.</td><tr>
<tr class="field"><td>remote_ip</td><td>character varying</td><td>The client's IP address (from the perspective of the server).</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>session_id</td><td>character varying</td><td>The session with which the request is associated.</td><tr>
<tr class="field"><td>completed_at</td><td>timestamp without time zone</td><td>When the request was completed.</td><tr>
<tr class="field"><td>port</td><td>integer</td><td>The port on which the request was received.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>The user associated with the request.</td><tr>
<tr class="field"><td>worker</td><td>character varying</td><td>Which worker machine received the request.</td><tr>
<tr class="field"><td>status</td><td>integer</td><td>The status returned to the client.</td><tr>
<tr class="field"><td>user_cookie</td><td>character varying</td><td>The user cookie provided in the request.</td><tr>
<tr class="field"><td>user_ip</td><td>character varying</td><td>The IP address of the originator of the request.</td><tr>
<tr class="field"><td>vizql_session</td><td>text</td><td>The vizql session associated with this request.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site associated with the request.</td><tr>
<tr class="field"><td>currentsheet</td><td>character varying</td><td>Which sheet was being viewed.</td><tr>
<tr class="field"><td>flags_used</td><td>bigint</td><td>Integer representing the bitmap of feature flags used in the request.</td><tr>
</tbody>
</table>
<a name="id__ad_identity_stores_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>id__ad_identity_stores</dfn>:  Identities for Active Directory identity stores.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from instance_id on this table to id on table, <a href="#id__identity_store_instances_anchor">id__identity_store_instances</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>identity_uuid</td><td>uuid</td><td>Uuid of identity.</td><tr>
<tr class="field"><td>instance_id</td><td>integer</td><td>Instance identifier for identity store.</td><tr>
<tr class="field"><td>security_id</td><td>character varying</td><td>SID of identity in Active Directory.</td><tr>
<tr class="field"><td>sam_account_name</td><td>character varying</td><td>sAMAccountName of identity in Active Directory.</td><tr>
<tr class="field"><td>fqdn</td><td>character varying</td><td>Fully qualified domain name of Active Directory domain.</td><tr>
<tr class="field"><td>upn</td><td>character varying</td><td>userPrincipalName of identity in Active Directory.</td><tr>
<tr class="field"><td>external_id</td><td>character varying</td><td>Optional external identifier for identity.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Creation time of record.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Last updated time of record.</td><tr>
</tbody>
</table>
<a name="id__identity_store_instances_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>id__identity_store_instances</dfn>:  Instances of identity stores.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from type_id on this table to id on table, <a href="#id__identity_store_types_anchor">id__identity_store_types</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for identity store instance.</td><tr>
<tr class="field"><td>type_id</td><td>smallint</td><td>Foreign key for type of identity store instance.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>Machine consumable name for identity store instance.</td><tr>
<tr class="field"><td>display_name</td><td>character varying</td><td>Human consumable name for identity store instance.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Creation time of record.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Last updated time of record.</td><tr>
</tbody>
</table>
<a name="id__identity_store_types_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>id__identity_store_types</dfn>:  Types of identity stores.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>smallint</td><td>Primary key for identity store type.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>Machine consumable name for identity store type.</td><tr>
<tr class="field"><td>display_name</td><td>character varying</td><td>Human consumable name for identity store type.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Creation time of record.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Last updated time of record.</td><tr>
</tbody>
</table>
<a name="id__ldap_identity_stores_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>id__ldap_identity_stores</dfn>:  Identities for LDAP identity stores.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from instance_id on this table to id on table, <a href="#id__identity_store_instances_anchor">id__identity_store_instances</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>identity_uuid</td><td>uuid</td><td>Uuid of identity.</td><tr>
<tr class="field"><td>instance_id</td><td>integer</td><td>Instance identifier for identity store.</td><tr>
<tr class="field"><td>entry_uuid</td><td>uuid</td><td>EntryUUID of identity in LDAP.</td><tr>
<tr class="field"><td>distinguished_name</td><td>character varying</td><td>Normalized distinguished name of identity in LDAP.</td><tr>
<tr class="field"><td>external_id</td><td>character varying</td><td>Optional external identifier for identity.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Creation time of record.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Last updated time of record.</td><tr>
</tbody>
</table>
<a name="id__local_identity_stores_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>id__local_identity_stores</dfn>:  Identities for Local identity stores.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from instance_id on this table to id on table, <a href="#id__identity_store_instances_anchor">id__identity_store_instances</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>identity_uuid</td><td>uuid</td><td>Uuid of identity.</td><tr>
<tr class="field"><td>instance_id</td><td>integer</td><td>Instance identifier for identity store.</td><tr>
<tr class="field"><td>username</td><td>character varying</td><td>Username for identity.</td><tr>
<tr class="field"><td>protected_password</td><td>character varying</td><td>Protected password for identity.</td><tr>
<tr class="field"><td>protected_password_bad_format</td><td>boolean</td><td>Set to true if protected password format unrecognized.</td><tr>
<tr class="field"><td>failed_login_attempts</td><td>integer</td><td>Integer that represents the number of failed attempts since the last successful login.</td><tr>
<tr class="field"><td>last_failed_login</td><td>timestamp without time zone</td><td>Date that represents the last time the user had an unsuccessful login.</td><tr>
<tr class="field"><td>force_password_update</td><td>boolean</td><td>Boolean that represents if we want to force a password reset on the user the next time it tries to log in.</td><tr>
<tr class="field"><td>last_password_update</td><td>timestamp without time zone</td><td>Date that represents the last time the user updated the password to the current value.</td><tr>
<tr class="field"><td>external_id</td><td>character varying</td><td>Optional external identifier for identity.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Creation time of record.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Last updated time of record.</td><tr>
</tbody>
</table>
<a name="identity_based_activation_reporting_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>identity_based_activation_reporting</dfn>:  Login-based License Management (LBLM) -  NOTE: For any custom vizzes or reporting, it is recommended instead to use the View identity_based_activation_admin_view.  In this table each row contains important dates with regard to ATR Issuing and Login-based License Usage for a given User, Site, Device and Product combination.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary Key generated by PostgreSQL.</td><tr>
<tr class="field"><td>iba_user_id</td><td>character varying</td><td>Generated Id for user for IBA Reporting</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>(foreign key) Holds the primary key of the sites table.  Allows site filtering to work on Admin Views.</td><tr>
<tr class="field"><td>device_fingerprint</td><td>character varying</td><td>Uniquely identifies device. Built/generated from umn.</td><tr>
<tr class="field"><td>product_type</td><td>character varying</td><td>Product being used at the client level.</td><tr>
<tr class="field"><td>host_name</td><td>character varying</td><td>Computer host name.</td><tr>
<tr class="field"><td>product_version</td><td>character varying</td><td>application/product version being used at the client level.</td><tr>
<tr class="field"><td>registration_first_name</td><td>character varying</td><td>Registered user first name</td><tr>
<tr class="field"><td>registration_last_name</td><td>character varying</td><td>Registered user last name</td><tr>
<tr class="field"><td>registration_email</td><td>character varying</td><td>Registered user email address</td><tr>
<tr class="field"><td>registration_date</td><td>timestamp without time zone</td><td>Date active key was registered.</td><tr>
<tr class="field"><td>client_user_name</td><td>character varying</td><td>Login/User name from the client level.</td><tr>
<tr class="field"><td>atr_expiration_date</td><td>timestamp without time zone</td><td>Expiration date of active key. NULL means permanent.</td><tr>
<tr class="field"><td>hardware_serial_number</td><td>character varying</td><td>Uniquely identifies company's hardware asset.</td><tr>
<tr class="field"><td>registration_custom_field</td><td>character varying</td><td>custom field from registration</td><tr>
<tr class="field"><td>machine_os</td><td>character varying</td><td>os_architecture</td><tr>
<tr class="field"><td>virtual_machine</td><td>boolean</td><td>is the machine virtual</td><tr>
<tr class="field"><td>atr_chain_id</td><td>character varying</td><td>ATR Chain Id</td><tr>
<tr class="field"><td>domain_information</td><td>character varying</td><td>Computer Active Directory domain.</td><tr>
<tr class="field"><td>date_atr_issued</td><td>timestamp without time zone</td><td>date-time the last time an ATR request returned from from the ATR Service SUCCESSFULLY for this user, device, product and site.</td><tr>
<tr class="field"><td>date_atr_failed</td><td>timestamp without time zone</td><td>date-time the last time an ATR request returned from from the ATR Service UNSUCCESSFULLY-(FAILED) for this user, device, product and site.</td><tr>
<tr class="field"><td>date_activated</td><td>timestamp without time zone</td><td>date-time the first time the user activated this product from this device for this site.</td><tr>
<tr class="field"><td>date_last_used</td><td>timestamp without time zone</td><td>date-time the last time the user used this product from this device for this site.</td><tr>
<tr class="field"><td>date_last_updated</td><td>timestamp without time zone</td><td>date-time the last time any of the event dates (date_...) were updated for a given user, productType, device and site.</td><tr>
<tr class="field"><td>server_user_name</td><td>character varying</td><td>Full user friendly name on the server level.</td><tr>
<tr class="field"><td>server_email</td><td>character varying</td><td>Email for user on the server level.</td><tr>
<tr class="field"><td>site_luid</td><td>character varying</td><td>Holds the site luid from the sites table.</td><tr>
<tr class="field"><td>user_role</td><td>character varying</td><td>DEPRECATED - Please use user_role in the VIEW identity_based_activation_admin_view instead.  This column is no longer updated and will be deleted. </td><tr>
</tbody>
</table>
<a name="identity_based_activation_user_role_change_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>identity_based_activation_user_role_change</dfn>:  Login-based License Management (LBLM) -  NOTE: For any custom vizzes or reporting, it is recommended instead to use the View identity_based_activation_admin_view.  This table tracks site role creator changes for each given user on a given site.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>site_id</td><td>integer</td><td>The site ID of the User represented in this row.</td><tr>
<tr class="field"><td>user_luid</td><td>character varying</td><td>Unique ID for user from users table.</td><tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>Foreign Key to System User table.</td><tr>
<tr class="field"><td>system_user_name</td><td>character varying</td><td>Name of the user across all sites.  Populated from system_users table.</td><tr>
<tr class="field"><td>date_creator_role_assigned</td><td>timestamp without time zone</td><td>Datetime user was assigned from a non-creator role to a creator role -- triggered from the users table.</td><tr>
<tr class="field"><td>date_creator_role_unassigned</td><td>timestamp without time zone</td><td>Datetime user was unassigned from a creator role to a non-creator role -- triggered from the users table.</td><tr>
<tr class="field"><td>site_role_id</td><td>integer</td><td>Foreign key to site_roles table to allow access to site_roles display_name.</td><tr>
</tbody>
</table>
<a name="language_prefs_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>language_prefs</dfn>:  Contains a listing of information about languages for which Tableau Server has been localized.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>language_id</td><td>character varying</td><td>A unique ASCII string identifier for the language.</td><tr>
<tr class="field"><td>display_name</td><td>character varying</td><td>The name of the language (in the language, itself).</td><tr>
<tr class="field"><td>display_order</td><td>integer</td><td>Governs the order in which these languages will appear when listed in the user interface.</td><tr>
<tr class="field"><td>help_link</td><td>text</td><td>Used in constructing help links, so that help can be presented in the appropriate language.</td><tr>
<tr class="field"><td>locale_id</td><td>character varying</td><td>A unique identifying string that corresponds to a locale with this language.</td><tr>
</tbody>
</table>
<a name="licensing_roles_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>licensing_roles</dfn>:  Lists the various possible licensing scenarios.  (Unlicensed, Guest, Viewer, or Interactor).</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the licensing role.</td><tr>
<tr class="field"><td>rank</td><td>integer</td><td>Used to provide an order of increasing rights.</td><tr>
<tr class="field"><td>licensing_roles_count</td><td>integer</td><td>Count of used licensing roles.</td><tr>
</tbody>
</table>
<a name="local_names_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>local_names</dfn>:  Contains translations of certain words or phrases that are relevant to some Tableau Server database constructs.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>language_id</td><td>character varying</td><td>Abbreviation for a particular language.</td><tr>
<tr class="field"><td>obj_name</td><td>character varying</td><td>A string that uniquly represents the object to be translated.  This name, by convention, is very similar, if not identical to the name field for English.</td><tr>
<tr class="field"><td>obj_type</td><td>character varying</td><td>The type of the object. For example, "Project" or "Site".</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>How to call this object in the specified language, as given by language_id.</td><tr>
</tbody>
</table>
<a name="materialize_views_job_sos_directory_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>materialize_views_job_sos_directory</dfn>:  Each row in the table is a mapping of a workbook id and revision in a materialize views job to the sos directories that the job requires.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>ID of the workbook whose query results in this materialized view. This id is same as the id (primary key) of the public.workbooks table in the database.</td><tr>
<tr class="field"><td>workbook_revision</td><td>text</td><td>Revision of the workbook whose id is the workbook_id column.</td><tr>
<tr class="field"><td>materialized_query_directory_sos_id</td><td>text</td><td>id of the directory in sos that contains the queries that are materialized.</td><tr>
</tbody>
</table>
<a name="materialized_views_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>materialized_views</dfn>:  This table stores the materialized views for queries in workbooks.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from materialized_view_connection_id on this table to id on table, <a href="#materialized_views_connections_anchor">materialized_views_connections</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Auto-generated id from postgres; also the primary key for the table.</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>ID of the workbook whose query results in this materialized view. This id is same as the id (primary key) of the public.workbooks table in the database.</td><tr>
<tr class="field"><td>workbook_revision</td><td>text</td><td>Revision of the workbook whose id is the workbook_id column.</td><tr>
<tr class="field"><td>materialized_query_file_name</td><td>text</td><td>Name of the file that stores the materialized query in sos.</td><tr>
<tr class="field"><td>table_name</td><td>text</td><td>Name of the table storing the materialized view of the query.</td><tr>
<tr class="field"><td>materialized_query_directory_sos_id</td><td>text</td><td>id of the directory in sos that contains the queries that are materialized.</td><tr>
<tr class="field"><td>materialized_view_connection_id</td><td>integer</td><td>ID (foreign key from materialized view connection table) of the connection that stores the materialized view</td><tr>
<tr class="field"><td>materialized_view_expiration_time</td><td>timestamp without time zone</td><td>Timestamp at which the view is considered obsolete and becomes a candidate for removal by MaterializedViewService.garbageCollector.</td><tr>
<tr class="field"><td>elapsed_query_seconds</td><td>real</td><td>Total elapsed time (in seconds) for the query.</td><tr>
<tr class="field"><td>materialized_query_result_size_lower_bound_bytes</td><td>bigint</td><td>materialized query result size without indrect referenced values(such as string).</td><tr>
<tr class="field"><td>materialized_query_result_size_upper_bound_bytes</td><td>bigint</td><td>materialized query result size with indrect referened values (such as string).</td><tr>
<tr class="field"><td>materialization_job_created_at</td><td>timestamp without time zone</td><td>Stores the timestamp at which the materialization job was created</td><tr>
<tr class="field"><td>query_view_bitmap</td><td>bytea</td><td>Bitmap to store a mapping of all the views that use the query</td><tr>
<tr class="field"><td>query_hash</td><td>numeric</td><td>unsigned 64 bit hash of the materialized logical query.</td><tr>
<tr class="field"><td>query_hash_string</td><td>character varying</td><td>string representation of hash of the materialized logical query.</td><tr>
<tr class="field"><td>query_execution_timestamp</td><td>timestamp without time zone</td><td>Timestamp when query is executed in a materialization job.</td><tr>
</tbody>
</table>
<a name="materialized_views_bloom_filters_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>materialized_views_bloom_filters</dfn>:  This table stores the bloom filters indicating materialized sites/workbooks.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>bloom_filter_type</td><td>smallint</td><td>Type of this bloom filter</td><tr>
<tr class="field"><td>update_timestamp</td><td>timestamp without time zone</td><td>Timestamp when the bloomfilter is updated.</td><tr>
<tr class="field"><td>serialized_bloom_filter</td><td>bytea</td><td>Serialized bloom filters.</td><tr>
<tr class="field"><td>stale</td><td>boolean</td><td>Flag to indicate whether or not we need to rebuild the bloom filter.</td><tr>
</tbody>
</table>
<a name="materialized_views_connections_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>materialized_views_connections</dfn>:  This table stores the information required to fetch materialized views files from the server where they are stored.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the table.</td><tr>
<tr class="field"><td>materialized_views_directory_sos_id</td><td>text</td><td>Id of the sos directory in which the materialized views are contained.</td><tr>
<tr class="field"><td>datasource_name</td><td>text</td><td>Name of the data source against which we run the query to generate the materialized view.</td><tr>
<tr class="field"><td>serialized_source_connection_attributes</td><td>text</td><td>Serialized connection attributes for the source datasource connection from which the materialized views are created.</td><tr>
<tr class="field"><td>serialized_materialized_view_connection_attributes</td><td>text</td><td>Serialized connection attributes to connect to the datasource storing the materialized views.</td><tr>
<tr class="field"><td>logical_query_cache_key_xml</td><td>text</td><td>XML containing the datasource columns that is used for generating the cache key for logical query cache.  This is known as relationXML in parts of the code.</td><tr>
</tbody>
</table>
<a name="materialized_views_metadata_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>materialized_views_metadata</dfn>:  This table stores the metadata for the materialized view service.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>key</td><td>character varying</td><td>The key name of the metadata</td><tr>
<tr class="field"><td>value</td><td>character varying</td><td>The value of the metadata</td><tr>
</tbody>
</table>
<a name="materialized_views_object_status_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>materialized_views_object_status</dfn>:  This table stores the materialized views state configuration for objects for which the feature is enabled.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from object_id on this table to id on table, <a href="#workbooks_anchor">workbooks</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>site_id</td><td>integer</td><td>ID of the site. This id is same as the id (primary key) of the public.sites table.</td><tr>
<tr class="field"><td>object_id</td><td>integer</td><td>ID of the object (workbook or flow).</td><tr>
<tr class="field"><td>state</td><td>smallint</td><td>A small int representing the current state of the materialized views for the site (and workbook if it is not null).</td><tr>
<tr class="field"><td>change_timestamp</td><td>timestamp without time zone</td><td>Timestamp of the last change made to the record.</td><tr>
<tr class="field"><td>id</td><td>integer</td><td>auto generated integer primary key.</td><tr>
</tbody>
</table>
<a name="mentions_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>mentions</dfn>:  Mentions for comments.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from comment_id on this table to id on table, <a href="#comments_anchor">comments</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>comment_id</td><td>integer</td><td>A foreign key reference to the comment that the mention is attached to.</td><tr>
<tr class="field"><td>target_type</td><td>character varying</td><td>The type of the mention target.</td><tr>
<tr class="field"><td>target_id</td><td>integer</td><td>The id of the target.</td><tr>
</tbody>
</table>
<a name="metric_metrics_aggregations_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>metric_metrics_aggregations</dfn>:  Each record represents a partial aggregation of analytics for a given metric in a given time interval.  It is often necessary to sum across multiple rows to find a total for a given time interval.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from metric_id on this table to id on table, <a href="#metrics_anchor">metrics</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>metric_id</td><td>integer</td><td>A foreign key reference to the metric.</td><tr>
<tr class="field"><td>day_index</td><td>integer</td><td>Records what day of the month the analytics are aggregated over.  When 0, the aggregation is for the month and year as designated by month_index and year_index.</td><tr>
<tr class="field"><td>month_index</td><td>integer</td><td>Records what month of the year the analytics are aggregated over.  When 0, the aggregation is for the year as designated by year_index.</td><tr>
<tr class="field"><td>year_index</td><td>integer</td><td>Records what year the analytics are aggregated over</td><tr>
<tr class="field"><td>view_count</td><td>integer</td><td>Records the number of times a metric was viewed in the given time interval.</td><tr>
</tbody>
</table>
<a name="metrics_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>metrics</dfn>:  Each record represents a Metric.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from customized_view_id on this table to id on table, <a href="#customized_views_anchor">customized_views</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from dataalert_id on this table to id on table, <a href="#data_alerts_anchor">data_alerts</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from owner_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from project_id on this table to id on table, <a href="#projects_anchor">projects</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from view_id on this table to id on table, <a href="#views_anchor">views</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from workbook_id on this table to id on table, <a href="#workbooks_anchor">workbooks</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>A descriptive name.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>A unique, immutable identifier within a site.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>The last publisher.</td><tr>
<tr class="field"><td>project_id</td><td>integer</td><td>The associated project.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The associated site.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time the record was created, in UTC.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>A user-supplied description.</td><tr>
<tr class="field"><td>embedded</td><td>text</td><td>The encrypted keychain with credentials.</td><tr>
<tr class="field"><td>asset_key_id</td><td>integer</td><td>The asset encryption key used to encrypt the keychain in the embedded column.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time the record was updated.</td><tr>
<tr class="field"><td>datasource_id</td><td>integer</td><td>The datasource from which the metric queries its data.</td><tr>
<tr class="field"><td>dataalert_id</td><td>integer</td><td>The data alert from which the metric queries its data.</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>The workbook from which the metric queries its data.</td><tr>
<tr class="field"><td>view_id</td><td>integer</td><td>The view within the workbook specified by workbook_id.</td><tr>
<tr class="field"><td>last_scheduled_at</td><td>timestamp without time zone</td><td>The last time a refresh for this Metric was scheduled</td><tr>
<tr class="field"><td>last_refreshed_at</td><td>timestamp without time zone</td><td>The last time a Metric's data was refreshed successfully</td><tr>
<tr class="field"><td>incomplete_refresh_attempts</td><td>integer</td><td>The amount of incomplete attempts to refresh this Metric</td><tr>
<tr class="field"><td>customized_view_id</td><td>integer</td><td>The ID of the customized view the metric was created on.</td><tr>
<tr class="field"><td>suspend_state</td><td>integer</td><td>0: metric is not suspended, 1: metric was auto-suspended, 2: metric was manually suspended.</td><tr>
<tr class="field"><td>connected_view_path</td><td>character varying</td><td>The connected view path for the metric</td><tr>
<tr class="field"><td>connected_view_name</td><td>character varying</td><td>The connected view name for the metric</td><tr>
</tbody>
</table>
<a name="metrics_definition_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>metrics_definition</dfn>:  Each record represents a metrics definition.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>uuid</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>metric_luid</td><td>uuid</td><td>Metric unique identifier</td><tr>
<tr class="field"><td>site_luid</td><td>uuid</td><td>An identifier which is unique to the site</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Timestamp when this metric definition is created</td><tr>
<tr class="field"><td>metric_definition</td><td>bytea</td><td>Definition of the metric</td><tr>
</tbody>
</table>
<a name="metrics_snapshot_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>metrics_snapshot</dfn>:  Each record represents a metrics snapshot.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from metric_view_id on this table to id on table, <a href="#metrics_view_anchor">metrics_view</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>uuid</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>metric_view_id</td><td>uuid</td><td>An identifier for metric view</td><tr>
<tr class="field"><td>client_timestamp</td><td>timestamp without time zone</td><td>Timestamp when this metric snapshot is created on client</td><tr>
<tr class="field"><td>server_timestamp</td><td>timestamp without time zone</td><td>Timestamp when this metric snapshot is created on server</td><tr>
<tr class="field"><td>site_luid</td><td>uuid</td><td>An identifier which is unique to the site</td><tr>
</tbody>
</table>
<a name="metrics_snapshot_delta_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>metrics_snapshot_delta</dfn>:  Each record represents a metrics snapshot delta.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from metric_view_id on this table to id on table, <a href="#metrics_view_anchor">metrics_view</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>uuid</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>metric_view_id</td><td>uuid</td><td>An identifier for metric snapshot</td><tr>
<tr class="field"><td>delta_timestamp</td><td>timestamp without time zone</td><td>Timestamp when this metric snapshot delta is created</td><tr>
<tr class="field"><td>process_key</td><td>character varying</td><td>Process Key for this metric snapshot delta</td><tr>
<tr class="field"><td>data</td><td>bytea</td><td>Data for metric snapshot delta</td><tr>
<tr class="field"><td>site_luid</td><td>uuid</td><td>An identifier which is unique to the site</td><tr>
</tbody>
</table>
<a name="metrics_view_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>metrics_view</dfn>:  Each record represents a metrics view.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>uuid</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>metric_luid</td><td>uuid</td><td>An identifier which is unique to the metric definition</td><tr>
<tr class="field"><td>site_luid</td><td>uuid</td><td>An identifier which is unique to the site</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>Name of the metric view</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Timestamp when this metric view is created</td><tr>
<tr class="field"><td>columns</td><td>bytea</td><td>Metrics columns blob</td><tr>
</tbody>
</table>
<a name="mobile_enrollments_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>mobile_enrollments</dfn>:  Keeps track of most recent time a user has been enrolled for a mobile device. User will typically be enrolled onto server by logging into server through the mobile client. A user may be enrolled under multiple devices if the devices have different attributes (pixel width, pixel height, pixel ratio)</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>A foreign key reference to the user who is enrolled.</td><tr>
<tr class="field"><td>width</td><td>integer</td><td>The port size (width) of the device that is enrolled.</td><tr>
<tr class="field"><td>height</td><td>integer</td><td>The port size (height) of the device that is enrolled.</td><tr>
<tr class="field"><td>pixel_ratio</td><td>real</td><td>Used to distinguish high dpi of the enrolled devices.</td><tr>
<tr class="field"><td>last_enrolled_at</td><td>timestamp without time zone</td><td>The most recent time a user has been enrolled for a mobile device.</td><tr>
</tbody>
</table>
<a name="most_recent_refreshes_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>most_recent_refreshes</dfn>:  most recent refresh data for alerts</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>historical_event_type_id</td><td>integer</td><td>historical event type of the refresh</td><tr>
<tr class="field"><td>worker</td><td>text</td><td>worker executing refresh</td><tr>
<tr class="field"><td>duration_in_ms</td><td>integer</td><td>duration of refresh</td><tr>
<tr class="field"><td>details</td><td>text</td><td>details of refresh</td><tr>
<tr class="field"><td>task_id</td><td>integer</td><td>task id</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>site id</td><tr>
<tr class="field"><td>data_connection_id</td><td>integer</td><td>data connection id</td><tr>
<tr class="field"><td>is_failure</td><td>boolean</td><td>whether or not refresh failed</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>when refresh occurred</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>workbook being refreshed</td><tr>
<tr class="field"><td>datasource_id</td><td>integer</td><td>datasource being refreshed</td><tr>
</tbody>
</table>
<a name="most_recent_subscription_runs_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>most_recent_subscription_runs</dfn>:  most recent subscription runs data for suspend subscriptions</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from subscription_id on this table to id on table, <a href="#subscriptions_anchor">subscriptions</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>subscription_id</td><td>integer</td><td>subscription id</td><tr>
<tr class="field"><td>details</td><td>text</td><td>details of subscription run in plain text</td><tr>
<tr class="field"><td>completed_at</td><td>timestamp without time zone</td><td>The time at which the subscription job was last completed and this record was last updated or created</td><tr>
</tbody>
</table>
<a name="mru_list_entries_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>mru_list_entries</dfn>:  Holds most recently used list entries. The records here are linked to the lists to which they belong. Those lists are defined in the mru_lists table.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from mru_list_id on this table to id on table, <a href="#mru_lists_anchor">mru_lists</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>mru_list_id</td><td>integer</td><td>A foreign key reference to the mru_list record to which this item belongs.</td><tr>
<tr class="field"><td>useable_id</td><td>integer</td><td>A kind of "polymorphic" foreign key reference. It contains the id of the item to which this entry refers. Look for it in the table indicated by the useable_type field.</td><tr>
<tr class="field"><td>useable_type</td><td>character varying</td><td>One of "User" "View" "Project" "Workbook" or "Tag". Indicates the type of item that this is.</td><tr>
<tr class="field"><td>position</td><td>integer</td><td>When the items are shown in order, this field defines that order.</td><tr>
<tr class="field"><td>used_at</td><td>timestamp without time zone</td><td>The last time at which the item referred to by this entry was accessed.</td><tr>
<tr class="field"><td>usedobj_name</td><td>text</td><td>The name of the item referred to by this entry.</td><tr>
<tr class="field"><td>usedobj_url</td><td>text</td><td>A URL-like identifier for the item referred to by this entry.</td><tr>
</tbody>
</table>
<a name="mru_lists_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>mru_lists</dfn>:  Most recently used lists by user. The actual list contents are in the mru_list_entries table.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>A foreign key reference to the user who is associated with this list.</td><tr>
<tr class="field"><td>list_type</td><td>character varying</td><td>One of "users" "views" "projects" "workbooks" or "tags".</td><tr>
</tbody>
</table>
<a name="next_gen_permissions_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>next_gen_permissions</dfn>:  This table provides a flexible means of describing which users and groups have been granted which capabilities, on which things. Be aware that permissions is a complex topic and that this table does not contain all relevant information about permissions. For example, some permissions are given, automatically, to owners of workbooks or projects.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from capability_id on this table to id on table, <a href="#capabilities_anchor">capabilities</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>authorizable_type</td><td>character varying</td><td>Describes the type of thing for which permissions are being specified. Must be one of "Project" "Workbook" "Datasource" "View" or "NamedResource".</td><tr>
<tr class="field"><td>authorizable_id</td><td>integer</td><td>The id value of the thing for which permissions are being specified. So, for example, if authorizable_type were "Workbook" then authorizable_id would correspond to the id value of the workbook in question. </td><tr>
<tr class="field"><td>grantee_id</td><td>integer</td><td>Refers to either the id of the "users" table or the id of the "groups" table depending on the value of grantee_type.</td><tr>
<tr class="field"><td>grantee_type</td><td>character varying</td><td>Permissions can be assigned to either users or groups, and this tells you which. Entry must be one of "User" or "Group".</td><tr>
<tr class="field"><td>capability_id</td><td>integer</td><td>Indicates which capability is to be granted or denied by this record. It is a foreign key link to the capabilities table where the corresponding record describes the nature of the capability in question.</td><tr>
<tr class="field"><td>permission</td><td>integer</td><td>An integer from 1 to 4 that combines whether the permission is applied to a user or to a group (which can also be seen from grantee_type) as well as whether this is granting or denying the capability. The meaning of the values is: 1: grant to group, 2: deny to group, 3: grant to user, 4: deny to user. Ascending order corresponds to increasing precedence. For example, a capability denied to a group (2) can be overriden by the same capability granted specifically to a user in that group (3).</td><tr>
</tbody>
</table>
<a name="nlp_suggested_questions_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>nlp_suggested_questions</dfn>:  Suggested questions</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from parent_group_luid on this table to luid on table, <a href="#nlp_suggestion_groups_anchor">nlp_suggestion_groups</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from published_datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The unique identifier for this row that is automatically generated on insert</td><tr>
<tr class="field"><td>expression</td><td>text</td><td>Serialized and versioned expression</td><tr>
<tr class="field"><td>parent_group_luid</td><td>text</td><td>LUID of the question's parent group</td><tr>
<tr class="field"><td>sort_order</td><td>integer</td><td>The position at which the question should be displayed within its parent group</td><tr>
<tr class="field"><td>luid</td><td>text</td><td>The unique identifier for this row to be referenced by application code</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site ID of datasource the question belongs to</td><tr>
<tr class="field"><td>published_datasource_id</td><td>integer</td><td>Datasource ID of datasource the question belongs to</td><tr>
<tr class="field"><td>interpretation_nlg</td><td>text</td><td>Human readable text of the suggested question</td><tr>
<tr class="field"><td>created_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was created</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was updated</td><tr>
<tr class="field"><td>colloquial_alias</td><td>text</td><td>User-defined colloquial alias of a suggested question</td><tr>
</tbody>
</table>
<a name="nlp_suggestion_groups_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>nlp_suggestion_groups</dfn>:  Suggested question groups</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from published_datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The unique identifier for this row that is automatically generated on insert</td><tr>
<tr class="field"><td>group_name</td><td>text</td><td>Name of the group of suggested questions</td><tr>
<tr class="field"><td>description</td><td>text</td><td>Description of the group of suggested questions</td><tr>
<tr class="field"><td>sort_order</td><td>integer</td><td>The position at which the group should be displayed relative to other groups</td><tr>
<tr class="field"><td>luid</td><td>text</td><td>The unique identifier for this row to be referenced by application code</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site ID of datasource the suggestion group belongs to</td><tr>
<tr class="field"><td>published_datasource_id</td><td>integer</td><td>Datasource ID of datasource the suggestion group belongs to</td><tr>
<tr class="field"><td>created_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was created</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was updated</td><tr>
</tbody>
</table>
<a name="oauth_request_tokens_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>oauth_request_tokens</dfn>:  Table of tokens used for OAuth authorization requests.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>entry_db_class</td><td>character varying</td><td>The connection class of the connection to which the token will belong.</td><tr>
<tr class="field"><td>entry_db_subclass</td><td>character varying</td><td>The connection subclass of the connection to which the token will belong</td><tr>
<tr class="field"><td>request_token</td><td>text</td><td>The request token which can be exchanged for an access token along with the request token secret.</td><tr>
<tr class="field"><td>request_token_secret_encrypted</td><td>text</td><td>The encrypted request token secret which can be exchanged for an access token along with the request token</td><tr>
<tr class="field"><td>is_used</td><td>boolean</td><td>Whether or not the request token/request token secret were exchanged for an access token or not.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time the record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time the record was last updated.</td><tr>
<tr class="field"><td>asset_key_id</td><td>integer</td><td>ID of key used to encrypt the token secret.</td><tr>
</tbody>
</table>
<a name="password_tokens_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>password_tokens</dfn>:  Tokens issued to client through link in email which can be redeemed to change their password</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from system_user_id on this table to id on table, <a href="#system_users_anchor">system_users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key identifier for row</td><tr>
<tr class="field"><td>guid</td><td>uuid</td><td>Unique identifier for token</td><tr>
<tr class="field"><td>salt</td><td>character varying</td><td>The salt is used to hash the password</td><tr>
<tr class="field"><td>hashed_secret</td><td>character varying</td><td>Secret portion of token thats been hashed</td><tr>
<tr class="field"><td>expires_at</td><td>timestamp without time zone</td><td>When the token becomes expired</td><tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>Reference to system user that requested the token</td><tr>
</tbody>
</table>
<a name="pdf_subscription_options_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>pdf_subscription_options</dfn>:  Used to store different PDF layout options.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from subscription_id on this table to id on table, <a href="#subscriptions_anchor">subscriptions</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>pdf_page_size_option</td><td>character varying</td><td>Type of page size such as A4, letter etc </td><tr>
<tr class="field"><td>pdf_page_orientation</td><td>character varying</td><td>Orientation in which page should be rendered.</td><tr>
<tr class="field"><td>subscription_id</td><td>integer</td><td>ID of the subscription with these attachments options.</td><tr>
</tbody>
</table>
<a name="pending_search_update_items_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>pending_search_update_items</dfn>:  This table represents an item that is associated with a pending_search_update.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from pending_search_update_id on this table to id on table, <a href="#pending_search_updates_anchor">pending_search_updates</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the pending search update item.</td><tr>
<tr class="field"><td>pending_search_update_id</td><td>integer</td><td>Primary key id for pending search update associated with the item.</td><tr>
<tr class="field"><td>item_id</td><td>integer</td><td>Primary key for the item. The type of the item is determined by the pending search update.</td><tr>
</tbody>
</table>
<a name="permission_reasons_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>permission_reasons</dfn>:  When calculating effective permissions in the perm_users_*_capabilities functions, this table maps the integer precedence of the effective permission rule to the varchar effective permission reason.  The integer precedence is internal to the stored procedures.  The effective permission reason is returned to callers.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>precedence</td><td>integer</td><td>The integer precedence of an effective permission rule.  Higher value means higher precedence.  Used in the perm_users_*_capabilities functions.</td><tr>
<tr class="field"><td>reason</td><td>character varying</td><td>The external identifier for an effective permission rule.  Returned by the perm_users_*_capabilities functions.</td><tr>
</tbody>
</table>
<a name="permission_set_classes_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>permission_set_classes</dfn>:  Represents a class of permission sets.  Generally 1-to-1 with capabilities.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the permission set class record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the permission set class.</td><tr>
</tbody>
</table>
<a name="permission_set_items_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>permission_set_items</dfn>:  Represents a single next_gen_permission in a permission_set.  The columns mirror the next_gen_permissions table.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from capability_id on this table to id on table, <a href="#capabilities_anchor">capabilities</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from permission_set_id on this table to id on table, <a href="#permission_sets_anchor">permission_sets</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>grantee_id</td><td>integer</td><td>Refers to either the id of the "users" table or the id of the "groups" table depending on the value of grantee_type.</td><tr>
<tr class="field"><td>grantee_type</td><td>character varying</td><td>Permissions can be assigned to either users or groups, and this tells you which. Entry must be one of "User" or "Group".</td><tr>
<tr class="field"><td>capability_id</td><td>integer</td><td>Indicates which capability is to be granted or denied by this record. It is a foreign key link to the capabilities table where the corresponding record describes the nature of the capability in question.</td><tr>
<tr class="field"><td>permission</td><td>integer</td><td>An integer from 1 to 4 that combines whether the permission is applied to a user or to a group (which can also be seen from grantee_type) as well as whether this is granting or denying the capability. The meaning of the values is: 1: grant to group, 2: deny to group, 3: grant to user, 4: deny to user. Ascending order corresponds to increasing precedence. For example, a capability denied to a group (2) can be overriden by the same capability granted specifically to a user in that group (3).</td><tr>
<tr class="field"><td>permission_set_id</td><td>integer</td><td>The permission set this item is a part of.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site.</td><tr>
</tbody>
</table>
<a name="permission_sets_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>permission_sets</dfn>:  Represents a common set of permissions used by multiple authorizables.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from permission_set_class_id on this table to id on table, <a href="#permission_set_classes_anchor">permission_set_classes</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the permission set record.</td><tr>
<tr class="field"><td>permission_set_class_id</td><td>integer</td><td>The permission set class.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site id.</td><tr>
<tr class="field"><td>delete_if_unreferenced_after</td><td>timestamp without time zone</td><td>The earliest time it is safe to delete this permission_set if it is unreferenced by authorizable_permission_sets</td><tr>
</tbody>
</table>
<a name="permissions_templates_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>permissions_templates</dfn>:  This table provides a flexible means of describing which users and groups will be granted which capabilities by default, on non-overwrite publishes of workbooks and datasources. Be aware that permissions is a complex topic and that this table does not contain all relevant information about permissions. For example, some permissions are given, automatically, to owners of workbooks or projects.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from capability_id on this table to id on table, <a href="#capabilities_anchor">capabilities</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>template_type</td><td>character varying</td><td>Determines whether the permission template applies to workbooks or datasource.  Value must be "Workbook" or "Datasource".</td><tr>
<tr class="field"><td>grantee_id</td><td>integer</td><td>Refers to either the id of the "users" table or the id of the "groups" table depending on the value of grantee_type.</td><tr>
<tr class="field"><td>grantee_type</td><td>character varying</td><td>Permissions can be assigned to either users or groups, and this tells you which. Entry must be one of "User" or "Group".</td><tr>
<tr class="field"><td>capability_id</td><td>integer</td><td>Indicates which capability is to be granted or denied by this record. It is a foreign key link to the capabilities table where the corresponding record describes the nature of the capability in question.</td><tr>
<tr class="field"><td>permission</td><td>integer</td><td>An integer from 1 to 4 that combines whether the permission is applied to a user or to a group (which can also be seen from grantee_type) as well as whether this is granting or denying the capability. The meaning of the values is: 1: grant to group, 2: deny to group, 3: grant to user, 4: deny to user. Ascending order corresponds to increasing precedence. For example, a capability denied to a group (2) can be overridden by the same capability granted specifically to a user in that group (3).</td><tr>
<tr class="field"><td>container_type</td><td>text</td><td>Type of container for which this permission template applies, possbile value are Database and Project.</td><tr>
<tr class="field"><td>container_id</td><td>integer</td><td>Identifies the container for which this permission template applies.</td><tr>
</tbody>
</table>
<a name="pkce_tokens_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>pkce_tokens</dfn>:  Proof Key for Credential Exchange (RFC 7636) short-lived storage.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>A foreign key reference to the user.</td><tr>
<tr class="field"><td>authorization_code</td><td>bytea</td><td>The authorization code (RFC 7636).</td><tr>
<tr class="field"><td>code_challenge</td><td>bytea</td><td>The code challenge (RFC 7636).</td><tr>
<tr class="field"><td>code_challenge_method</td><td>character varying</td><td>The code challenge method (RFC 7636).</td><tr>
<tr class="field"><td>expires_at</td><td>timestamp with time zone</td><td>The time when this token expires.</td><tr>
<tr class="field"><td>redeemed_at</td><td>timestamp with time zone</td><td>The time when this token was redeemed.</td><tr>
</tbody>
</table>
<a name="projects_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>projects</dfn>:  Each row of the table corresponds to a project on Tableau Server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from controlling_permissions_project_id on this table to id on table, <a href="#projects_anchor">projects</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from owner_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from parent_project_id on this table to id on table, <a href="#projects_anchor">projects</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the project.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>The id of the user who owns this project.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time at which this record was last changed.</td><tr>
<tr class="field"><td>state</td><td>character varying</td><td>If this is anything other than "active" then the project is inactive.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>A textual description of the project.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site which contains this project.</td><tr>
<tr class="field"><td>special</td><td>integer</td><td>Has a value of 1 if this is a special system-created project (like the default project). Otherwise it is NULL.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>The locally unique ID, which is intended for exposing externally by the server API. This is automatically generated.</td><tr>
<tr class="field"><td>controlled_permissions_enabled</td><td>boolean</td><td>Indicates whether permissions on workbooks, views, and data sources are controlled at the project level.</td><tr>
<tr class="field"><td>parent_project_id</td><td>integer</td><td>Id of the parent project. NULL for top-level projects.</td><tr>
<tr class="field"><td>admin_insights_enabled</td><td>boolean</td><td>Indicates if project is a Admin Insights project</td><tr>
<tr class="field"><td>nested_projects_permissions_included</td><td>boolean</td><td>Indicates whether nested projects should be included when permissions are controlled or not controlled at the project level. Associated with controlled_permissions_enabled column</td><tr>
<tr class="field"><td>controlling_permissions_project_id</td><td>integer</td><td>The id of the ancestor project that is controlling the permissions for this project.</td><tr>
</tbody>
</table>
<a name="published_connections_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>published_connections</dfn>:  Each record represents a Published Connection.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>A descriptive name.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>A unique, immutable identifier within a site.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>The user who creates the published connection.</td><tr>
<tr class="field"><td>project_id</td><td>integer</td><td>The associated project.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The associated site.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time the record was created, in UTC.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time the record was updated, in UTC.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>A user-supplied description.</td><tr>
</tbody>
</table>
<a name="queue_time_average_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>queue_time_average</dfn>:  Average queue time of jobs within interval of configured length in minutes, for day of the week and each job type.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>day_of_week</td><td>integer</td><td>Day of week, represented by integer value. Sunday: 0, Monday: 1, ..., Saturday: 6</td><tr>
<tr class="field"><td>job_type</td><td>character varying</td><td>Type of background job.</td><tr>
<tr class="field"><td>interval_number</td><td>integer</td><td>The ordinality of intervals. Values range from 0 to 95, given default configured bucket size of 15 minutes. </td><tr>
<tr class="field"><td>num_records</td><td>integer</td><td>The number of records associated with the interval.</td><tr>
<tr class="field"><td>avg_queue_time</td><td>integer</td><td>The average queue time, in minutes, of all jobs for a particular job type and day of week, within specified interval.</td><tr>
</tbody>
</table>
<a name="recommendations_dismissed_views_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>recommendations_dismissed_views</dfn>:  Views dismissed by user in context of viz recommendations</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from view_id on this table to id on table, <a href="#views_anchor">views</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site Id associated with this dismissed view</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>User Id of user that dismissed the view</td><tr>
<tr class="field"><td>view_id</td><td>integer</td><td>View Id that was dismissed by user</td><tr>
<tr class="field"><td>dismissed_at</td><td>timestamp without time zone</td><td>Time in Utc when the view was dismissed by user</td><tr>
</tbody>
</table>
<a name="recycle_bin_content_types_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>recycle_bin_content_types</dfn>:  Content Type lookup table for Recycle Bin.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Auto incremented primary key.</td><tr>
<tr class="field"><td>content_type</td><td>character varying</td><td>Content type of the object in Recycle Bin.</td><tr>
<tr class="field"><td>sos_type</td><td>character varying</td><td>SOS Type for thumbnails of this content type</td><tr>
</tbody>
</table>
<a name="recycle_bin_contents_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>recycle_bin_contents</dfn>:  Table storing all items in the Recycle Bin.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from content_type_id on this table to id on table, <a href="#recycle_bin_content_types_anchor">recycle_bin_content_types</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Auto incremented primary key.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>Name of the recycled item.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>Description (if any) of the recycled item.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>Owner of the original item. May no longer exist.</td><tr>
<tr class="field"><td>deleted_by_user_id</td><td>integer</td><td>ID of the user who deleted this item. May no longer exist.</td><tr>
<tr class="field"><td>content_id</td><td>character varying</td><td>Content ID (could be LUID or ID) of the deleted content.</td><tr>
<tr class="field"><td>thumbnail_id</td><td>character varying</td><td>Thumbnail of the deleted content.</td><tr>
<tr class="field"><td>deleted_at</td><td>timestamp without time zone</td><td>Time of deletion.</td><tr>
<tr class="field"><td>last_modified_time</td><td>timestamp without time zone</td><td>Last modified time of the original object before deletion.</td><tr>
<tr class="field"><td>content_type_id</td><td>integer</td><td>Content type ID of the deleted object.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>ID of the Site from which this content was deleted.</td><tr>
<tr class="field"><td>restorable_object</td><td>json</td><td>Object metadata in JSON, used to restore the object.</td><tr>
</tbody>
</table>
<a name="refresh_token_devices_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>refresh_token_devices</dfn>:  Devices that have been issued at least one refresh token</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key identifier</td><tr>
<tr class="field"><td>device_id</td><td>character varying</td><td>Unique identifier of the device. Must be unique across all instances of the same installations of client applications. This is expected to stay the same through the lifetime of the application.</td><tr>
<tr class="field"><td>device_name</td><td>character varying</td><td>Friendly name of the device to be displayed</td><tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>Reference to the system user the token is issued to</td><tr>
<tr class="field"><td>last_used_at</td><td>timestamp without time zone</td><td>The last time the device redeemed the refresh token.</td><tr>
</tbody>
</table>
<a name="refresh_tokens_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>refresh_tokens</dfn>:  Tokens issued to clients which can be redeemed by the client for access to the server</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from refresh_token_device_id on this table to id on table, <a href="#refresh_token_devices_anchor">refresh_token_devices</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key identifier</td><tr>
<tr class="field"><td>guid</td><td>uuid</td><td>Unique identifer of the refresh token</td><tr>
<tr class="field"><td>client_id</td><td>character varying</td><td>Unique identifier with which to associate to the refresh token series.</td><tr>
<tr class="field"><td>client_name</td><td>character varying</td><td>This column is no longer used and will be deleted once it will no longer be breaking an upgrade scenario</td><tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>Reference to the system user the token is issued to</td><tr>
<tr class="field"><td>expires_at</td><td>timestamp without time zone</td><td>When this token becomes expired. null means that it does not have absolute expiration time</td><tr>
<tr class="field"><td>last_used_at</td><td>timestamp without time zone</td><td>When the token was last redeemed for an access token</td><tr>
<tr class="field"><td>issued_at</td><td>timestamp without time zone</td><td>When this token was issued to the client</td><tr>
<tr class="field"><td>salt</td><td>character varying</td><td>The salt used when hashing the secret</td><tr>
<tr class="field"><td>hashed_secret</td><td>character varying</td><td>Secret portion of the token thats been hashed</td><tr>
<tr class="field"><td>session_id</td><td>character varying</td><td>The most current session that has been redeemed using this refresh token. Null if no sessions have been redeemed</td><tr>
<tr class="field"><td>refresh_token_device_id</td><td>integer</td><td>Reference to the device the token is issued to</td><tr>
<tr class="field"><td>next_hashed_secret</td><td>character varying</td><td>Secret portion of the token thats been hashed for the next refresh token</td><tr>
<tr class="field"><td>next_salt</td><td>character varying</td><td>The salt used when hashing the secret for the next refresh_token</td><tr>
</tbody>
</table>
<a name="remote_agents_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>remote_agents</dfn>:  Registry of remote agents (Online). Remote agents are programs installed on customer PC and executing tasks
 on a behalf of a customer. The first example of agent is Tableau Data Sync. It is running in background on
 customer desktop and performing automatic data source refreshes based on schedules defined by customers.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from owner_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>Foreign key reference to the user who owns this project.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Foreign key reference to the site which contains this remote agent.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>Name of the remote agent. Usually agent computer name. This name must be unique for a specific site/user.
 Different users can have same agent (for example of shared computer).</td><tr>
<tr class="field"><td>time_zone_id</td><td>character varying</td><td>String identifier of agent's time zone. Time zone is specified during registration and can be changed later.
 Time zone ID is full name such as "America/Los_Angeles". It should be accepted by Java method
 java.util.TimeZone.getTimeZone(java.lang.String).</td><tr>
<tr class="field"><td>schedules_synced_at</td><td>timestamp without time zone</td><td>UTC time of last agent synchronization of schedules with the server. Time is the recorded server time.</td><tr>
<tr class="field"><td>device_id</td><td>character varying</td><td>ID generated by client and also given to the Refresh Token Service. Otherwise, one is randomly generated.</td><tr>
<tr class="field"><td>concurrent_live_operations_allowed</td><td>integer</td><td>Number of concurrent live operations allowed on a remote agent.</td><tr>
<tr class="field"><td>capacities</td><td>text</td><td>The capacities that this remote agent exhibits, e.g. LiveQueryAlpha, LiveQueryBeta, LiveQueryV1</td><tr>
<tr class="field"><td>pooled</td><td>boolean</td><td>If part of the site pool to handle shared work.</td><tr>
<tr class="field"><td>version</td><td>character varying</td><td>The version of the remote agent.</td><tr>
</tbody>
</table>
<a name="repository_data_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>repository_data</dfn>:  This table forms the link between other tables that need to store "large object" data, and the large object storage, itself.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from sos_blob_data_id on this table to id on table, <a href="#sos_blob_data_anchor">sos_blob_data</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>A possibly useful string that is mostly here to make it easier to debug.</td><tr>
<tr class="field"><td>content</td><td>oid</td><td>An oid field that references the corresponding data stored in the pg_largeobject system table. Be aware pg_largeobject is not accessible by the "tableau" or "readonly" users.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
<tr class="field"><td>tracking_id</td><td>character varying</td><td>Unique ID used to track the repository data.</td><tr>
<tr class="field"><td>type</td><td>character varying</td><td>Simple Object Storage type.</td><tr>
<tr class="field"><td>kind</td><td>character varying</td><td>Kind of data in content; file or folder.</td><tr>
<tr class="field"><td>sos_blob_data_id</td><td>bigint</td><td>foreign key referencing sos_blob_data.id</td><tr>
</tbody>
</table>
<a name="resource_holder_types_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>resource_holder_types</dfn>:  Information about entities which can hold on to resources. For instance workbook is such an entity, it can reference a geocoding database and keep it alive.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>smallint</td><td>Unique numeric id of the type. This value is used as the value of resource_usage.resource_holder_type column.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>Unique name of the type, used in the code to identify the particular resource holder type.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>Description of the type.</td><tr>
</tbody>
</table>
<a name="resource_types_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>resource_types</dfn>:  Information about resources which are used by some server entities. For instance geocoding databases are such resources, a workbook can reference a geocoding database and keep it alive.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>smallint</td><td>Unique numeric id of the type. This value is used as the value of resource_usage.resource_type column.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>Unique name of the type, used in the code to identify the particular resource type.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>Description of the type.</td><tr>
</tbody>
</table>
<a name="resource_usage_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>resource_usage</dfn>:  Information about resources by tableau server entities, for example which geocoding databases are used by which workbooks.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from resource_holder_type on this table to id on table, <a href="#resource_holder_types_anchor">resource_holder_types</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from resource_type on this table to id on table, <a href="#resource_types_anchor">resource_types</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Auto-generated id from postgres; also the primary key for the table.</td><tr>
<tr class="field"><td>resource_holder_type</td><td>smallint</td><td>Type of the entity which references the resource. Values correspond to the values in the resource_holder_type.id column.</td><tr>
<tr class="field"><td>resource_holder_id</td><td>integer</td><td>ID of the entity for which this entry was created. The meaning of the ID depends on the resource_holder_type value. For instance, for workbooks it is the workbook ID</td><tr>
<tr class="field"><td>resource_type</td><td>smallint</td><td>Type of the resource, e.g. geocoding database. Values correspond to the values in the resource_type.id column.</td><tr>
<tr class="field"><td>resource_id</td><td>integer</td><td>ID of the resource. The meaning of the ID depends on the resource_type value. For instance, for geocoding databases it is the id from the geocoding table.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Timestamp when this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Same as created_at.</td><tr>
</tbody>
</table>
<a name="roles_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>roles</dfn>:  This table contains records corresponding to various classifications of users. It should really be viewed in conjuction with the capabilities and capability_roles tables. Taken together, these tables associate different roles with different sets of capabilities. The capabilities sets serve as templates when creating content.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>Each role has a name by which it is known to program code. Examples include, viewer, editor, interactor, ds_editor, etc.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time at which this record was last changed.</td><tr>
<tr class="field"><td>creator_id</td><td>integer</td><td>Links to the user who created this record, or is NULL. Not a significant value.</td><tr>
<tr class="field"><td>displayable</td><td>boolean</td><td>Used to distinguish between records that can be displayed in the GUI and those that cannot.</td><tr>
<tr class="field"><td>administrative</td><td>boolean</td><td>Roles are categorized as administrative in nature, or not.  This field is used for filtering.</td><tr>
<tr class="field"><td>display_order</td><td>integer</td><td>Ascending order of this value is the order in which roles are listed, when displayed.</td><tr>
<tr class="field"><td>display_name</td><td>character varying</td><td>This is the name for the role, which will be displayed to the user.</td><tr>
</tbody>
</table>
<a name="schedules_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>schedules</dfn>:  Records in this table define a schedule according to which certain regular tasks may be performed (see tasks table). They also indicate the next time at which the schedule will be triggered.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>A schedule can be given a name, which is stored here.</td><tr>
<tr class="field"><td>active</td><td>boolean</td><td>If set to false, this means that the schedule is inactive, meaning that no tasks will be performed when the schedules triggers.</td><tr>
<tr class="field"><td>priority</td><td>integer</td><td>Priority can range from 1 to 100, with lower values corresponding to higher priority.</td><tr>
<tr class="field"><td>schedule_type</td><td>integer</td><td>One of 0 (Hourly), 1 (Daily), 2 (Weekly), 3 (Monthly).</td><tr>
<tr class="field"><td>day_of_week_mask</td><td>integer</td><td>Indicates which day of the week this schedule will run. The information is encoded in the given integer. To interpret it, convert the integer to binary. The days of the week correspond to Sunday : 1, Monday : 10, Tuesday : 100, Wednesday : 1000, Thursday : 10000, Friday : 100000, Saturday : 1000000.</td><tr>
<tr class="field"><td>day_of_month_mask</td><td>integer</td><td>Indicates which day of the month this schedule will run. The information is encoded in the given integer. To interpret it, convert the integer to binary. The days of the month correspond to 1st : 1, 2nd: 10, 3rd: 100, 4th: 1000, 5th: 10000, etc.</td><tr>
<tr class="field"><td>start_at_minute</td><td>integer</td><td>The minute following the start of the designated time period implied by the schedule_type. For example, for a daily schedule, this would be number of minutes past midnight at the start of the day. For hourly, it would be the number of minutes past the beginning of the hour.</td><tr>
<tr class="field"><td>minute_interval</td><td>integer</td><td>Once the schedule triggers, it will retrigger at this interval during the time period implied by the schedule_type or until end_at_minute, or end_schedule_at.</td><tr>
<tr class="field"><td>end_at_minute</td><td>integer</td><td>The minute following the start of the designated time period implied schedule_type, at which the schedule should stop triggering.</td><tr>
<tr class="field"><td>end_schedule_at</td><td>timestamp without time zone</td><td>Used to indicate a point in time, after which the schedule should never trigger.</td><tr>
<tr class="field"><td>run_next_at</td><td>timestamp without time zone</td><td>When the schedule will next trigger.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The last time any changes were made to this record.</td><tr>
<tr class="field"><td>hidden</td><td>boolean</td><td>If set to true, then this schedule will not be listed in the GUI, otherwise it will be.</td><tr>
<tr class="field"><td>serial_collection_id</td><td>integer</td><td>A foreign key to the serial_collections table. Two jobs with the same serial_collection_id cannot be processed simultaneously. When the job record for a task linked to this schedule is created, it is assigned this serial_collection_id.</td><tr>
<tr class="field"><td>lock_version</td><td>integer</td><td>Used to implement "optimistic locking" by JPA/Hibernate. The counter increases each time the record is changed. Not useful for customers.</td><tr>
<tr class="field"><td>scheduled_action</td><td>integer</td><td>Used to classify schedules into categories: 0 (Extracts), 1 (Subscriptions), 2 (Sync AD users and groups), 3 (Auto Refresh Extracts), 4 (Flows)</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>uuid for schedules used in the REST API</td><tr>
<tr class="field"><td>defined_by</td><td>integer</td><td>The mechanism type of how the schedule is created, e.g. 0 for system_admin, 1 for self_service.</td><tr>
<tr class="field"><td>timezoneid</td><td>text</td><td>The IANA timezoneid for the schedule when it is created i.e. America/Los_angeles</td><tr>
</tbody>
</table>
<a name="schema_migrations_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>schema_migrations</dfn>:  This table tracks which database migrations have been applied to this database.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>version</td><td>character varying</td><td>A string, derived from the name of the migration file, which serves to identify a particular migration that has been applied.</td><tr>
</tbody>
</table>
<a name="semantics_service_data_source_events_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>semantics_service_data_source_events</dfn>:  Stores the last data source event processed by semantics service</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The unique identifier for this row that is automatically generated on insert</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was updated</td><tr>
<tr class="field"><td>last_enqueued_id</td><td>bigint</td><td>The ID of the event that is last processed by semantics service</td><tr>
<tr class="field"><td>processing_node</td><td>text</td><td>The ID of the semantics service node that is currently processing the events. If the field is empty, no semantics service node is currently processing events.</td><tr>
</tbody>
</table>
<a name="serial_collections_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>serial_collections</dfn>:  Records in this table represent groups of background jobs that should not be run simultaneously. </th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The primary key for the record.</td><tr>
<tr class="field"><td>description</td><td>character varying</td><td>Whoever creates the serial collection can decide what they want this description to say.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The last time any changes were made to this record.</td><tr>
</tbody>
</table>
<a name="server_scoped_metadata_node_properties_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>server_scoped_metadata_node_properties</dfn>:  Table to store properties of a node.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Auto increment primary Key.</td><tr>
<tr class="field"><td>node_id</td><td>character varying</td><td>Id of a node present in graph.</td><tr>
<tr class="field"><td>content_type</td><td>character varying</td><td>Content type of a node present in graph.</td><tr>
<tr class="field"><td>property_name</td><td>character varying</td><td>Name of a property for a node present in graph.</td><tr>
<tr class="field"><td>property_value</td><td>text</td><td>Value of a property for a node present in graph.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Timestamp when property is created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Timestamp when property is updated.</td><tr>
</tbody>
</table>
<a name="sessions_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>sessions</dfn>:  Settings associated with a user's browser session.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The primary key for the record.</td><tr>
<tr class="field"><td>session_id</td><td>character varying</td><td>Session identifier.</td><tr>
<tr class="field"><td>data</td><td>text</td><td>Serialized session data.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Time when session was last updated, used to expire inactive sessions.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>Foreign key to users table</td><tr>
<tr class="field"><td>shared_wg_write</td><td>text</td><td>Settings used by wgserver (language/country preference etc).</td><tr>
<tr class="field"><td>shared_vizql_write</td><td>text</td><td>Settings used by vizql server.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>A foreign key to the sites table.  Indicates the site to which this session belongs.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>A timestamp without timezone indicating how long ago the session was created</td><tr>
<tr class="field"><td>lock_version</td><td>integer</td><td>Used to implement "optimistic locking." Don't set this or mess with it, it's all handled automatically.</td><tr>
<tr class="field"><td>salt</td><td>character varying</td><td>The salt used when hashing the secret.</td><tr>
<tr class="field"><td>hashed_secret</td><td>character varying</td><td>Secret portion of the token thats been hashed.</td><tr>
</tbody>
</table>
<a name="sheet_images_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>sheet_images</dfn>:  Serves as a cache for all the sheet images generated by server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from customized_view_id on this table to id on table, <a href="#customized_views_anchor">customized_views</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from generated_as_user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from view_id on this table to id on table, <a href="#views_anchor">views</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>width</td><td>integer</td><td>The port size (width) used to generate the image.</td><tr>
<tr class="field"><td>height</td><td>integer</td><td>The port size (height) used to generate the image.</td><tr>
<tr class="field"><td>pixel_ratio</td><td>real</td><td>The pixel ratio used to generate the image.</td><tr>
<tr class="field"><td>view_id</td><td>integer</td><td>A foreign key reference to the view used to generate the image.</td><tr>
<tr class="field"><td>language_id</td><td>character varying</td><td>A code indicating the language used to generate the image.</td><tr>
<tr class="field"><td>locale_id</td><td>character varying</td><td>A code indicating the locale used to generate the image.</td><tr>
<tr class="field"><td>generated_at</td><td>timestamp without time zone</td><td>A timestamp indicating when the image was generated.</td><tr>
<tr class="field"><td>data_storage_id</td><td>bigint</td><td>A reference to an entry in the repository_data table, which, in turn references the PostgreSQL large object that contains the sheet image for this entry.</td><tr>
<tr class="field"><td>generated_as_user_id</td><td>integer</td><td>A foreign key reference to the user the image was generated as. Can be null if the image was not generated as any user in particular.</td><tr>
<tr class="field"><td>customized_view_id</td><td>integer</td><td>A foreign key reference to the customized view that the image was generated as. Can be null if the image was not generated with a customized view.</td><tr>
<tr class="field"><td>cropped_height</td><td>integer</td><td>Indicates how many pixels were vertically cropped off of the generated image.</td><tr>
<tr class="field"><td>cropped_width</td><td>integer</td><td>Indicates how many pixels were horizontally cropped off of the generated image.</td><tr>
<tr class="field"><td>freshness_verified_at</td><td>timestamp without time zone</td><td>This date represents a point in time at which this sheet image is considered to be fresh.</td><tr>
<tr class="field"><td>data_id</td><td>character varying</td><td>Unique ID used to identify the image.</td><tr>
<tr class="field"><td>show_commands_query_str</td><td>text</td><td>Represents hash of the possible show commands to be applied to the viz in the native api code.</td><tr>
<tr class="field"><td>file_type</td><td>integer</td><td>The file type. 0 for Image, 1 for Pdf</td><tr>
<tr class="field"><td>page_orientation</td><td>integer</td><td>PDF page orientation</td><tr>
<tr class="field"><td>page_size_option</td><td>integer</td><td>PDF page size option</td><tr>
</tbody>
</table>
<a name="site_logos_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>site_logos</dfn>:  custom logo image metadata for sites</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>site_id</td><td>bigint</td><td>the site the logo belongs to</td><tr>
<tr class="field"><td>width</td><td>integer</td><td>the image width in px</td><tr>
<tr class="field"><td>height</td><td>integer</td><td>the image height in px</td><tr>
<tr class="field"><td>storage_id</td><td>character varying</td><td>identifies the logo image on the storage back_end</td><tr>
<tr class="field"><td>url</td><td>text</td><td>the public URL of the logo</td><tr>
<tr class="field"><td>mime_type</td><td>character varying</td><td>the MIME type of the logo</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time when this row was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time when this row was last updated.</td><tr>
<tr class="field"><td>logo_type</td><td>character varying</td><td>type of logo (header or compact)</td><tr>
</tbody>
</table>
<a name="site_oidc_configurations_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>site_oidc_configurations</dfn>:  Defines the OpenID Connect IdP associated with a site.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>site_luid</td><td>uuid</td><td>Primary key for this table, matches the site.site_luid column.</td><tr>
<tr class="field"><td>is_enabled</td><td>boolean</td><td>Defines if the configration is active.</td><tr>
<tr class="field"><td>known_provider_alias</td><td>text</td><td>Name of the preconfigured provider, which must be defined in SiteSAML application.yml file.</td><tr>
<tr class="field"><td>client_id</td><td>text</td><td>OAuth2 client ID if using a custom provider.</td><tr>
<tr class="field"><td>client_secret</td><td>text</td><td>OAuth2 client secret if using a custom provider.</td><tr>
<tr class="field"><td>user_authorization_uri</td><td>text</td><td>OAuth2 user authorization URI if using a custom provider.</td><tr>
<tr class="field"><td>access_token_uri</td><td>text</td><td>OAuth2 access token URI if using a custom provider.</td><tr>
<tr class="field"><td>user_info_uri</td><td>text</td><td>OAuth2 user info URI if using a custom provider.</td><tr>
</tbody>
</table>
<a name="site_roles_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>site_roles</dfn>:  Lists the various possible user site roles.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>User site role ID is unique key correspondent to site_role_id from users table.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>User site role name.</td><tr>
<tr class="field"><td>licensing_rank</td><td>integer</td><td>User license role rank for the purpose of licensing users with the correct priority when the number of available licenses is less that users. 1000-600 Tier Interactor users, down to 500 - Basic Tier users, 300 - Support users, 200 - guest users, 100 and below - Unlicensed.</td><tr>
<tr class="field"><td>display_name</td><td>character varying</td><td>User Friendly value to display on the IBA License Usage Admin View.</td><tr>
</tbody>
</table>
<a name="site_saml_configurations_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>site_saml_configurations</dfn>:  Defines the SAML IdP associated with a site.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_luid on this table to luid on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>site_luid</td><td>uuid</td><td>Primary key for this table, matches the site.site_luid column.</td><tr>
<tr class="field"><td>idp_entity_descriptor</td><td>text</td><td>XML block of the EntityDescriptor for the Identity Provider.</td><tr>
<tr class="field"><td>attribute_mapping</td><td>text</td><td>Defines mapping for the saml response fields.</td><tr>
<tr class="field"><td>sp_certificate</td><td>text</td><td>PEM encoded certificate.</td><tr>
<tr class="field"><td>sp_private_key</td><td>text</td><td>PEM encoded private key.</td><tr>
<tr class="field"><td>is_enabled</td><td>boolean</td><td>Defines if the configration is active.</td><tr>
<tr class="field"><td>entity_descriptor_validation_result</td><td>text</td><td>JSON Serialized validation result.</td><tr>
<tr class="field"><td>authentication_domain_id</td><td>character varying</td><td>Authentication Domain.</td><tr>
<tr class="field"><td>authentication_type_for_embedded</td><td>character varying</td><td>Authentication type: DEFAULT or SAML.</td><tr>
<tr class="field"><td>allow_embedded_authentication</td><td>boolean</td><td>Flag if the site permits the authentication flow to be hosted in an iframe.</td><tr>
</tbody>
</table>
<a name="site_saml_events_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>site_saml_events</dfn>:  Log table for all SAML actions.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_luid on this table to luid on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>uuid</td><td>Primary key for this table.</td><tr>
<tr class="field"><td>timestamp</td><td>timestamp without time zone</td><td>Timestamp for the event.</td><tr>
<tr class="field"><td>log_level</td><td>character varying</td><td>String value of the logging level.</td><tr>
<tr class="field"><td>message</td><td>text</td><td>Text of the logged message.</td><tr>
<tr class="field"><td>site_luid</td><td>uuid</td><td>Matches the site.site_luid column and site_saml_configurations.site_luid.</td><tr>
</tbody>
</table>
<a name="site_saml_sessions_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>site_saml_sessions</dfn>:  Records the user sessions authenticated by the SiteSAML service.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>character varying</td><td>Primary key for this table.</td><tr>
<tr class="field"><td>site_luid</td><td>uuid</td><td>Matches the site.site_luid column and site_saml_configurations.site_luid.</td><tr>
<tr class="field"><td>last_accessed_at</td><td>timestamp without time zone</td><td>Timestamp for the last_accessed_at time of the seesion.</td><tr>
<tr class="field"><td>http_session</td><td>bytea</td><td>HTTP Session representation.</td><tr>
<tr class="field"><td>version</td><td>bigint</td><td>Version value if set.</td><tr>
</tbody>
</table>
<a name="site_saml_users_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>site_saml_users</dfn>:  Users that are allowed to use Per Site SAML authentication.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_luid on this table to luid on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>uuid</td><td>Primary key for this table.</td><tr>
<tr class="field"><td>site_luid</td><td>uuid</td><td>Matches the site.site_luid column and site_saml_configurations.site_luid.</td><tr>
<tr class="field"><td>user_name</td><td>character varying</td><td>User name field.</td><tr>
<tr class="field"><td>auth_user_id</td><td>character varying</td><td>Matches the auth_user_id of the user stored in the system_users table.</td><tr>
<tr class="field"><td>authentication_type</td><td>character varying</td><td>Which type of authentication to use, e.g. SAML or OIDC.</td><tr>
</tbody>
</table>
<a name="site_scoped_metadata_node_properties_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>site_scoped_metadata_node_properties</dfn>:  Table to store properties of a node.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Auto increment primary Key.</td><tr>
<tr class="field"><td>node_id</td><td>character varying</td><td>Id of a node present in graph.</td><tr>
<tr class="field"><td>content_type</td><td>character varying</td><td>Content type of a node present in graph.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Id of the site a node is scoped for</td><tr>
<tr class="field"><td>property_name</td><td>character varying</td><td>Name of a property for a node present in graph.</td><tr>
<tr class="field"><td>property_value</td><td>text</td><td>Value of a property for a node present in graph.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Timestamp when property is created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Timestamp when property is updated.</td><tr>
</tbody>
</table>
<a name="site_user_prefs_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>site_user_prefs</dfn>:  Site user preferences.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The id of a site user preference. Primary key.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>A foreign key to users table. Indicates the site user to which this preference belongs.</td><tr>
<tr class="field"><td>refresh_failure_notification_enabled</td><td>boolean</td><td>Whether to send notification on failed extracts for this site user.</td><tr>
<tr class="field"><td>notification_enabled</td><td>boolean</td><td>Setting for enabling system notifications</td><tr>
<tr class="field"><td>show_welcome_screen</td><td>boolean</td><td>Shows the Welcome Screen on the Home space in Vizportalclient</td><tr>
<tr class="field"><td>show_metrics_banner</td><td>boolean</td><td>Shows the metrics banner on the metric detail screen in Vizportalclient</td><tr>
</tbody>
</table>
<a name="sites_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>sites</dfn>:  Each record represents a site. Each site holds its own workbooks, datasources, users, etc. Strict isolation between the contents of each site is maintained.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the site.</td><tr>
<tr class="field"><td>url_namespace</td><td>character varying</td><td>String used in the construction of URLs that target this site.</td><tr>
<tr class="field"><td>status</td><td>character varying</td><td>One of "active" "suspended" or "locked".</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The last time any changes were made to this record.</td><tr>
<tr class="field"><td>content_admin_mode</td><td>integer</td><td>One of 1 (content only) or 2 (content and users).</td><tr>
<tr class="field"><td>storage_quota</td><td>bigint</td><td>Maximum storage for the site in megabytes.</td><tr>
<tr class="field"><td>status_reason</td><td>character varying</td><td>Holds an explanation for why a site is in a "suspended" status.</td><tr>
<tr class="field"><td>subscriptions_enabled</td><td>boolean</td><td>True if subscriptions are allowed for this site, otherwise false.</td><tr>
<tr class="field"><td>custom_subscription_footer</td><td>text</td><td>Content to be placed as the footer in each subscription email sent.</td><tr>
<tr class="field"><td>custom_subscription_email</td><td>text</td><td>The email from which to send subscriptions.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>An identifier which is unique to this site.</td><tr>
<tr class="field"><td>authoring_disabled</td><td>boolean</td><td>If true, then web authoring is disabled.</td><tr>
<tr class="field"><td>sheet_image_enabled</td><td>boolean</td><td>True if sheet image API is enabled for this site, otherwise false.</td><tr>
<tr class="field"><td>refresh_token_setting</td><td>integer</td><td>If true, oauth is enabled on server, allowing connected clients.</td><tr>
<tr class="field"><td>version_history_enabled</td><td>boolean</td><td>Setting for enabling/disabling version history on a site</td><tr>
<tr class="field"><td>notification_enabled</td><td>boolean</td><td>Setting for enabling/disabling system notification such as email notification on a site</td><tr>
<tr class="field"><td>content_version_limit</td><td>integer</td><td>Maximum number of versions to retain for each content type : workbooks ,datasources </td><tr>
<tr class="field"><td>subscribe_others_enabled</td><td>boolean</td><td>Setting for enabling/disabling the subscribe others functionality on a site</td><tr>
<tr class="field"><td>lock_version</td><td>integer</td><td>Used to implement "optimistic locking." Don't set this or mess with it, it's all handled automatically.</td><tr>
<tr class="field"><td>guest_access_enabled</td><td>boolean</td><td>Setting for enabling/disabling guest account per site</td><tr>
<tr class="field"><td>support_access_enabled</td><td>boolean</td><td>Setting for enabling/disabling access to a Tableau Online site by a Tableau support user</td><tr>
<tr class="field"><td>cache_warmup_enabled</td><td>boolean</td><td>True if cache warmup is enabled for this site.</td><tr>
<tr class="field"><td>cache_warmup_threshold</td><td>smallint</td><td>How recently a view must have been viewed to run warmup for it in days, defaulting to 30.</td><tr>
<tr class="field"><td>data_alerts_enabled</td><td>boolean</td><td>Setting for enabling/disabling data driven alerts on a site</td><tr>
<tr class="field"><td>allow_live_query_sync</td><td>boolean</td><td>Setting for allowing live query sync on a site</td><tr>
<tr class="field"><td>commenting_enabled</td><td>boolean</td><td>Setting for enabling/disabling commenting on a site</td><tr>
<tr class="field"><td>self_service_schedules_enabled</td><td>boolean</td><td>Setting for enabling/disabling self service schedules on a site</td><tr>
<tr class="field"><td>tier_interactor_capacity</td><td>integer</td><td>Max site-wide tier interactor license capacity limit.</td><tr>
<tr class="field"><td>tier_basic_user_capacity</td><td>integer</td><td>Max site-wide tier basic user license capacity limit.</td><tr>
<tr class="field"><td>tier_author_capacity</td><td>integer</td><td>Max site-wide tier author license capacity limit.</td><tr>
<tr class="field"><td>viz_in_tooltip_enabled</td><td>boolean</td><td>Setting for enabling/disabling Viz in Tooltip on a site</td><tr>
<tr class="field"><td>protocol_cache_lifetime</td><td>integer</td><td>Lifetime for native connections, in minutes</td><tr>
<tr class="field"><td>protocol_group_size_limit</td><td>integer</td><td>Limit on connection parallelism</td><tr>
<tr class="field"><td>commenting_mentions_enabled</td><td>boolean</td><td>Setting for enabling/disabling commenting mentions on a site</td><tr>
<tr class="field"><td>mixed_content_enabled</td><td>boolean</td><td>Setting for enabling/disabling mixed content on a site</td><tr>
<tr class="field"><td>site_invite_notification_enabled</td><td>boolean</td><td>Setting for enabling/disabling site invite notification on a site</td><tr>
<tr class="field"><td>extract_encryption_mode</td><td>smallint</td><td>Extract encryption mode: whether it is disabled (null or 0), enabled (1), or enforced (2).</td><tr>
<tr class="field"><td>flows_enabled</td><td>boolean</td><td>Setting for enabling/disabling Tableau Prep flows on a site</td><tr>
<tr class="field"><td>materialized_views_enabled</td><td>boolean</td><td>a flag to indicate whether the feature of materialized views is enabled for this site or not, enabled if true.</td><tr>
<tr class="field"><td>allow_subscriptions_attach_pdf</td><td>boolean</td><td>Whether to allow users to attach PDFs to subscription emails.</td><tr>
<tr class="field"><td>materialized_views_mode</td><td>smallint</td><td>Code representing the materialized views mode for the site.</td><tr>
<tr class="field"><td>start_page_uri</td><td>text</td><td>if not set the value from global_settings.start_page_uri is used</td><tr>
<tr class="field"><td>afe_enabled</td><td>boolean</td><td>Alternative Federation Engine (afe) is enabled or not</td><tr>
<tr class="field"><td>sandbox_enabled</td><td>boolean</td><td>Whether to enable sandbox for the site or not</td><tr>
<tr class="field"><td>viz_recs_enabled</td><td>boolean</td><td>Setting for enabling/disabling Viz Recommendations on a site</td><tr>
<tr class="field"><td>biometrics_mobile_enabled</td><td>boolean</td><td>Setting for enabling/disabling biometrics for mobile clients for a site</td><tr>
<tr class="field"><td>iba_enabled</td><td>boolean</td><td>Setting for enabling/disabling Identity Based Activation on a site. Only applicable for Online</td><tr>
<tr class="field"><td>named_sharing_enabled</td><td>boolean</td><td>Whether Named Sharing is enabled on the site</td><tr>
<tr class="field"><td>sandbox_storage_quota</td><td>bigint</td><td>the per user storage quota for sandboxes on a site in bytes. If null is unlimited</td><tr>
<tr class="field"><td>sandbox_datasources_enabled</td><td>boolean</td><td>Whether to enable datasources on sandboxes for the site or not</td><tr>
<tr class="field"><td>sandbox_flows_enabled</td><td>boolean</td><td>Whether to enable flows on sandboxes for the site or not</td><tr>
<tr class="field"><td>cataloging_enabled</td><td>boolean</td><td>Setting for enabling/disabling data cataloging features on a site</td><tr>
<tr class="field"><td>derived_permissions_enabled</td><td>boolean</td><td>Setting for enabling/disabling derived metadata permissions on a site</td><tr>
<tr class="field"><td>viz_recs_username_enabled</td><td>boolean</td><td>Setting for enabling/disabling the display of usernames along with viz recommendations</td><tr>
<tr class="field"><td>user_visibility</td><td>integer</td><td>Whether to user visibility is set to 0 - FULL or 1 - LIMITED</td><tr>
<tr class="field"><td>request_access</td><td>integer</td><td>One of 3 options for request access: on, off, custom_note</td><tr>
<tr class="field"><td>ask_data_mode</td><td>text</td><td>Setting the ask data mode for each site</td><tr>
<tr class="field"><td>run_now_enabled</td><td>boolean</td><td>Setting for allowing run now background jobs.</td><tr>
<tr class="field"><td>web_extraction_enabled</td><td>smallint</td><td>Enable or disable extract creation/live 1: enable, 0: disable the default is 1</td><tr>
<tr class="field"><td>metrics_enabled</td><td>boolean</td><td>Setting for enabling the metrics feature</td><tr>
<tr class="field"><td>web_editing_enabled</td><td>boolean</td><td>One of two options for web editing enabled: on, off</td><tr>
<tr class="field"><td>notify_site_admins_on_throttle</td><td>boolean</td><td>Setting for allowing site admins to opt in on receiving an email when background jobs are throttled.</td><tr>
<tr class="field"><td>obfuscation_enabled</td><td>boolean</td><td>Setting to enable or disable the obfuscation feature for Data Catalog</td><tr>
<tr class="field"><td>flow_auto_save_enabled</td><td>boolean</td><td>Setting to enable or disable auto save feature for flows</td><tr>
</tbody>
</table>
<a name="sos_blob_data_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>sos_blob_data</dfn>:  table to store sos file types as binary data</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>id referenced by repository_data sos_blob_data_id foreign key</td><tr>
<tr class="field"><td>data</td><td>bytea</td><td>SOS content stored as binary data</td><tr>
</tbody>
</table>
<a name="ss_custom_value_concepts_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>ss_custom_value_concepts</dfn>:  The table to hold value concepts used by semantics service</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from ontology_id, field_concept_key on this table to ontology_id, key on table, <a href="#ss_field_concepts_anchor">ss_field_concepts</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>The unique identifier for this row that is automatically generated on insert</td><tr>
<tr class="field"><td>created_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was created</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was updated</td><tr>
<tr class="field"><td>key</td><td>text</td><td>Key of a value concept which is unique within one ontology</td><tr>
<tr class="field"><td>value</td><td>text</td><td>The value of the value concept in string format</td><tr>
<tr class="field"><td>value_type</td><td>text</td><td>The enum that represents the value type</td><tr>
<tr class="field"><td>field_concept_key</td><td>text</td><td>Key of the field concept that this value concept belongs to</td><tr>
<tr class="field"><td>ontology_id</td><td>bigint</td><td>ID of the ontology that this value concept belongs to</td><tr>
<tr class="field"><td>synonyms</td><td>jsonb</td><td>A list of synonyms of this value concept</td><tr>
</tbody>
</table>
<a name="ss_field_concepts_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>ss_field_concepts</dfn>:  The table to hold field concepts used by semantics service</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from ontology_id, object_concept_key on this table to ontology_id, key on table, <a href="#ss_object_concepts_anchor">ss_object_concepts</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from vs_datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>The unique identifier for this row that is automatically generated on insert</td><tr>
<tr class="field"><td>created_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was created</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was updated</td><tr>
<tr class="field"><td>key</td><td>text</td><td>Key of a field concept which is unique within one ontology</td><tr>
<tr class="field"><td>names</td><td>jsonb</td><td>A list of synonyms of this field concept</td><tr>
<tr class="field"><td>description</td><td>text</td><td>Description of this field concept</td><tr>
<tr class="field"><td>name_characteristics</td><td>jsonb</td><td>A json blob that contains name characteristics of this field concept</td><tr>
<tr class="field"><td>data_types</td><td>ARRAY</td><td>A list of possible data types of this field concept</td><tr>
<tr class="field"><td>field_roles</td><td>ARRAY</td><td>A list of possible field roles of this field concept</td><tr>
<tr class="field"><td>default_formats</td><td>ARRAY</td><td>A list of possible default formats of this field concept</td><tr>
<tr class="field"><td>value_characteristics</td><td>jsonb</td><td>A json blob that contains value characteristics of this field concept</td><tr>
<tr class="field"><td>ontology_id</td><td>bigint</td><td>ID of ontology that this field concept belongs to</td><tr>
<tr class="field"><td>owner_id</td><td>text</td><td>User that creates this field concept, empty for built-in ones</td><tr>
<tr class="field"><td>object_concept_key</td><td>text</td><td>Key of object concept that this field concept belongs to</td><tr>
<tr class="field"><td>parent_field_concept_key</td><td>text</td><td>Key of field concept that is parent of this field concept</td><tr>
<tr class="field"><td>vs_field_name</td><td>text</td><td>Field in a published datasource that we sync value concepts of this field concept from</td><tr>
<tr class="field"><td>vs_datasource_id</td><td>bigint</td><td>Id of published datasource that we sync value concepts of this field concept from</td><tr>
<tr class="field"><td>user_id</td><td>bigint</td><td>ID of user who creates this field concept, empty for built-in ones</td><tr>
<tr class="field"><td>data_role_id</td><td>bigint</td><td>The ID of the data role that corresponds to the field concept. Data roles are stored in table `data_roles`.</td><tr>
<tr class="field"><td>value_source_kind</td><td>text</td><td>Contains a serialization of the kind of the value source (ie. datasource, builtin, valuelist, etc.)</td><tr>
</tbody>
</table>
<a name="ss_object_concepts_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>ss_object_concepts</dfn>:  The table to hold object concepts used by semantics service</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from ontology_id on this table to id on table, <a href="#ss_ontologies_anchor">ss_ontologies</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>The unique identifier for this row that is automatically generated on insert</td><tr>
<tr class="field"><td>created_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was created</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was updated</td><tr>
<tr class="field"><td>key</td><td>text</td><td>Key of an object concept which is unique within one ontology</td><tr>
<tr class="field"><td>names</td><td>jsonb</td><td>A list of synonyms of this object concept</td><tr>
<tr class="field"><td>description</td><td>text</td><td>Description of this object concept</td><tr>
<tr class="field"><td>ontology_id</td><td>bigint</td><td>ID of ontology that this object concept belongs to</td><tr>
<tr class="field"><td>source_version</td><td>text</td><td>Source data version of built-in object concepts</td><tr>
</tbody>
</table>
<a name="ss_ontologies_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>ss_ontologies</dfn>:  The table to hold ontologies used by semantics service</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>The unique identifier for this row that is automatically generated on insert</td><tr>
<tr class="field"><td>created_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was created</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was updated</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>ID of the site that this ontology belongs to, empty for built-in ontology</td><tr>
<tr class="field"><td>description</td><td>text</td><td>Description of this ontology</td><tr>
</tbody>
</table>
<a name="subscription_messages_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>subscription_messages</dfn>:  This table represent a subscription email message.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the subscription message.</td><tr>
<tr class="field"><td>message_text</td><td>text</td><td>The text of the message.</td><tr>
</tbody>
</table>
<a name="subscriptions_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>subscriptions</dfn>:  Each record represents a subscription.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from subscription_message_id on this table to id on table, <a href="#subscription_messages_anchor">subscription_messages</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from creator_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from schedule_id on this table to id on table, <a href="#schedules_anchor">schedules</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>subject</td><td>character varying</td><td>A string that describes the nature of the subscription.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>A foreign key reference to the user who will receive the subscription.</td><tr>
<tr class="field"><td>schedule_id</td><td>integer</td><td>A foreign key reference to the record in the schedules table that describes exactly when the subscription will be triggered.</td><tr>
<tr class="field"><td>last_sent</td><td>timestamp without time zone</td><td>The last time at which the the subscription was sent.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site ID for Subscriptions. FK reference to sites.id</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>UUID for subscriptions used in REST APIs</td><tr>
<tr class="field"><td>creator_id</td><td>integer</td><td>User id for user who created the subscription. FK reference to users.id</td><tr>
<tr class="field"><td>data_condition_type</td><td>character varying</td><td>The type of data condition that will cause this subscription to be sent out.  Defaults to "Always", but can also be "DataPresent", "Constant", "Band", etc.</td><tr>
<tr class="field"><td>is_refresh_extract_triggered</td><td>boolean</td><td>Whether or not subscription is triggered by refresh extract</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
<tr class="field"><td>subscription_message_id</td><td>integer</td><td>Locator for the subscription message.</td><tr>
<tr class="field"><td>content_has_user_references</td><td>boolean</td><td>Boolean that represents whether the content of the subscription has user references. NULL means subscription has not run yet</td><tr>
<tr class="field"><td>attach_pdf</td><td>boolean</td><td>Boolean that represents whether to attach a PDF to the subscription</td><tr>
<tr class="field"><td>attach_image</td><td>boolean</td><td>Boolean that represents whether to attach images to the subscription</td><tr>
<tr class="field"><td>target_type</td><td>character varying</td><td>String that represents the type of object being subscribed to. Either View or Workbook</td><tr>
<tr class="field"><td>target_id</td><td>integer</td><td>Integer that represents the id of the object being subscribed to.</td><tr>
</tbody>
</table>
<a name="subscriptions_customized_views_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>subscriptions_customized_views</dfn>:  This table is used to link various customized views to the subscriptions in which those customized views must be generated and emailed.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from customized_view_id on this table to id on table, <a href="#customized_views_anchor">customized_views</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from subscription_id on this table to id on table, <a href="#subscriptions_anchor">subscriptions</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>subscription_id</td><td>integer</td><td>A foreign key reference to a record in the subscriptions table. Emailing the customized view referenced by the customized_view_id is one of the activities of the linked subscription.</td><tr>
<tr class="field"><td>customized_view_id</td><td>integer</td><td>A foreign key reference to a particular customized view.</td><tr>
</tbody>
</table>
<a name="subscriptions_views_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>subscriptions_views</dfn>:  This table is used to link various views to the subscriptions in which those views must be generated and emailed.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from subscription_id on this table to id on table, <a href="#subscriptions_anchor">subscriptions</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>subscription_id</td><td>integer</td><td>A foreign key reference to a record in the subscriptions table. Emailing the view referenced by the repository_url is one of the activities of the linked subscription.</td><tr>
<tr class="field"><td>repository_url</td><td>text</td><td>Used as a means to reference the particular view that is to be included in the subscription.</td><tr>
</tbody>
</table>
<a name="subscriptions_workbooks_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>subscriptions_workbooks</dfn>:  This table is used to link various workbooks to the subscriptions in which those workbooks must have views generated and emailed.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from subscription_id on this table to id on table, <a href="#subscriptions_anchor">subscriptions</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>subscription_id</td><td>integer</td><td>A foreign key reference to a record in the subscriptions table. Emailing the views of the workbook referenced by the repository_url is one of the activities of the linked subscription.</td><tr>
<tr class="field"><td>repository_url</td><td>text</td><td>Used as a means to reference the particular workbook that is to be included in the subscription.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>A foreign key reference to the site that the workbooked referred to by repository_url belongs.</td><tr>
</tbody>
</table>
<a name="synonyms_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>synonyms</dfn>:  The table to hold the synonyms for fields of datasources</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from published_datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>site_id</td><td>integer</td><td>The site id of the datasource</td><tr>
<tr class="field"><td>published_datasource_id</td><td>integer</td><td>The published datasource id of the datasource</td><tr>
<tr class="field"><td>field_graph_id</td><td>text</td><td>The graph id corresponding to the field of a datasource</td><tr>
<tr class="field"><td>synonyms</td><td>ARRAY</td><td>The synonyms corresponding to a particular field of a datasource</td><tr>
<tr class="field"><td>created_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was created</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was updated</td><tr>
<tr class="field"><td>id</td><td>bigint</td><td>The unique identifier for this row that is automatically generated on insert</td><tr>
</tbody>
</table>
<a name="system_user_identities_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>system_user_identities</dfn>:  Identity to SystemUser mappings.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from system_user_id on this table to id on table, <a href="#system_users_anchor">system_users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>identity_uuid</td><td>uuid</td><td>Primary key for identity mapping.</td><tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>SystemUser for identity mapping.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Creation time of record.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Last updated time of record.</td><tr>
</tbody>
</table>
<a name="system_user_migration_conflicts_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>system_user_migration_conflicts</dfn>:  Conflicts when migrating system_user identities.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from duplicate_system_user_id on this table to id on table, <a href="#system_users_anchor">system_users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from system_user_id on this table to id on table, <a href="#system_users_anchor">system_users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The autoincremental id for this record.</td><tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>SystemUser for which the migration failed.</td><tr>
<tr class="field"><td>failure_type</td><td>character varying</td><td>The type of failure that was registered when migrating this system_user.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Creation time of this record.</td><tr>
<tr class="field"><td>discard_identity</td><td>boolean</td><td>If the admin acknowledge they will not create an identity for this system_user.</td><tr>
<tr class="field"><td>error_message</td><td>character varying</td><td>Information on the exception raised during the migration of this system_user.</td><tr>
<tr class="field"><td>duplicate_system_user_id</td><td>integer</td><td>The id of the system_user for which the original system_user is a duplicate of.</td><tr>
</tbody>
</table>
<a name="system_user_migration_conflicts_identity_data_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>system_user_migration_conflicts_identity_data</dfn>:  Identity information related to ambiguous results when migrating system_user identities.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from migration_conflict_id on this table to id on table, <a href="#system_user_migration_conflicts_anchor">system_user_migration_conflicts</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The autoincremental id for this record.</td><tr>
<tr class="field"><td>migration_conflict_id</td><td>integer</td><td>The id of the ambiguous migration conflict to which this identity information corresponds.</td><tr>
<tr class="field"><td>domain_fqdn</td><td>character varying</td><td>The fqdn from the domain of the active directory user.</td><tr>
<tr class="field"><td>sam_account_name</td><td>character varying</td><td>The sAMAccountName of the active directory user from the query result.</td><tr>
<tr class="field"><td>user_principal_name</td><td>character varying</td><td>The Full-UPN of the active directory user attributes.</td><tr>
<tr class="field"><td>distinguished_name</td><td>character varying</td><td>The DN of the ldap user from the query result.</td><tr>
<tr class="field"><td>display_name</td><td>character varying</td><td>The display name attribute from the query result.</td><tr>
</tbody>
</table>
<a name="system_users_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>system_users</dfn>:  Each record represents a user of the server. These records correspond to login identity. A single system_user may potentially be able to login to multiple sites. The linkage between a system_user and their allowed sites is defined through the "users" table.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from domain_id on this table to id on table, <a href="#domains_anchor">domains</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The username of the user.</td><tr>
<tr class="field"><td>email</td><td>character varying</td><td>The email of the user.</td><tr>
<tr class="field"><td>hashed_password</td><td>character varying</td><td>Hashed password - only used for local authentication.</td><tr>
<tr class="field"><td>salt</td><td>character varying</td><td>The salt used when hashing the password - only used for local authentication.</td><tr>
<tr class="field"><td>keychain</td><td>text</td><td>The encyrpted keychain for the user.</td><tr>
<tr class="field"><td>domain_id</td><td>integer</td><td>The domain for this user.</td><tr>
<tr class="field"><td>friendly_name</td><td>character varying</td><td>A friendly name that might be used in the GUI to refer to the user.</td><tr>
<tr class="field"><td>custom_display_name</td><td>boolean</td><td>If set to true, this prevents the friendly_name from potentially being overwritten by Active Airectory information when the user is read in from Active Directory.  Seldom done.</td><tr>
<tr class="field"><td>admin_level</td><td>integer</td><td>Indicates if the user is a system administrator. 10 : system admin, 0 : not a system admin</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The last time any changes were made to this record.</td><tr>
<tr class="field"><td>auth_user_id</td><td>character varying</td><td>An external, immutable identifier for the user provided by an external authorization system.</td><tr>
<tr class="field"><td>asset_key_id</td><td>integer</td><td>The id for the asset encryption key used to encrypt the keychain for this user.</td><tr>
<tr class="field"><td>lock_version</td><td>integer</td><td>Used to implement "optimistic locking." Don't set this or mess with it, it's all handled automatically.</td><tr>
<tr class="field"><td>last_password_update</td><td>timestamp without time zone</td><td>Date that represents the last time the user updated the password to the current value.</td><tr>
<tr class="field"><td>force_password_update</td><td>boolean</td><td>Boolean that represents if we want to force a password reset on the user the next time it tries to log in.</td><tr>
<tr class="field"><td>protected_password</td><td>character varying</td><td>Protected form of the user password - only used for local authentication.</td><tr>
<tr class="field"><td>last_failed_login</td><td>timestamp without time zone</td><td>Date that represents the last time the user had an unsuccessful login.</td><tr>
<tr class="field"><td>failed_login_attempts</td><td>integer</td><td>Integer that represents the number of failed attempts since the last successful login.</td><tr>
<tr class="field"><td>protected_password_bad_format</td><td>boolean</td><td>Set to true if protected password format unrecognized</td><tr>
</tbody>
</table>
<a name="table_asset_events_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>table_asset_events</dfn>:  Used to store table_asset events stream.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>table_asset_id</td><td>integer</td><td>table_asset ID.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site ID.</td><tr>
<tr class="field"><td>event_created_at</td><td>timestamp without time zone</td><td>Timestamp indicating when the record was inserted.</td><tr>
<tr class="field"><td>event_type</td><td>smallint</td><td>Event type to differentiate between insert, update, delete.</td><tr>
</tbody>
</table>
<a name="table_asset_sources_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>table_asset_sources</dfn>:  Used to store mappings between tables and their source.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from table_asset_id on this table to id on table, <a href="#table_assets_anchor">table_assets</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site id.</td><tr>
<tr class="field"><td>table_asset_id</td><td>integer</td><td>Table Asset ID.</td><tr>
<tr class="field"><td>source_id</td><td>integer</td><td>Source ID.</td><tr>
<tr class="field"><td>source_type</td><td>character varying</td><td>Source type, e.g. Workbook, Datasource, Flow.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Created at.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Updated at.</td><tr>
</tbody>
</table>
<a name="table_assets_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>table_assets</dfn>:  Each record represents a table asset that exists on Tableau Server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from grouped_parent_id on this table to id on table, <a href="#table_assets_anchor">table_assets</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from database_id on this table to id on table, <a href="#database_assets_anchor">database_assets</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from certifier_user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the table asset record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the table asset.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>A unique, immutable identifier for the table asset.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site that this table asset is associated with.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time the record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The time the record was updated.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>The description of the table asset.</td><tr>
<tr class="field"><td>database_id</td><td>integer</td><td>The database this table belongs to.</td><tr>
<tr class="field"><td>table_schema</td><td>text</td><td>Schema for this table.</td><tr>
<tr class="field"><td>contact_id</td><td>integer</td><td>The contact for this table.</td><tr>
<tr class="field"><td>contact_type</td><td>character varying</td><td>The contact type (user or group) for this table.</td><tr>
<tr class="field"><td>is_certified</td><td>boolean</td><td>Whether this table is certified.</td><tr>
<tr class="field"><td>certification_note</td><td>text</td><td>Certification note for this table.</td><tr>
<tr class="field"><td>certifier_user_id</td><td>integer</td><td>Certifier user_id for this table.</td><tr>
<tr class="field"><td>certifier_details</td><td>text</td><td>Certifier details for this table.</td><tr>
<tr class="field"><td>full_name</td><td>character varying</td><td>The fully qualified name of the table.</td><tr>
<tr class="field"><td>duplicate_id</td><td>integer</td><td>If not null, id of table that is a duplicate of this one.</td><tr>
<tr class="field"><td>is_tombstoned</td><td>boolean</td><td>Tombstoned tables are "soft deleted" because they are associated with databases that have been grouped with other databases.</td><tr>
<tr class="field"><td>grouped_parent_id</td><td>integer</td><td>ID in table_assets table of table this tombstoned database was grouped into.</td><tr>
</tbody>
</table>
<a name="taggings_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>taggings</dfn>:  Associates tags with taggable items.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from tag_id on this table to id on table, <a href="#tags_anchor">tags</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The primary key for the table.</td><tr>
<tr class="field"><td>tag_id</td><td>integer</td><td>The ID of the tag.</td><tr>
<tr class="field"><td>taggable_id</td><td>integer</td><td>The ID of the taggable item.</td><tr>
<tr class="field"><td>taggable_type</td><td>character varying</td><td>The type of the taggable item - this is used to identify which table to join to.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>The ID of the owning user.</td><tr>
</tbody>
</table>
<a name="tags_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>tags</dfn>:  Each tag is a string value. A given tag can be associated with many taggable items in a site.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The primary key for the table.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The value of the tag.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The last time any changes were made to this record.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The ID of the site to which the tag belongs.</td><tr>
</tbody>
</table>
<a name="tasks_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>tasks</dfn>:  Serves to connect schedules with background tasks that should be run on that schedule. The schedule is defined in the schedules table, while the task is defined by type.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from schedule_id on this table to id on table, <a href="#schedules_anchor">schedules</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The primary key for the table.</td><tr>
<tr class="field"><td>schedule_id</td><td>integer</td><td>Links to a schedule. When the schedule's "run_next_at" time arrives, any tasks linked to that schedule will run.</td><tr>
<tr class="field"><td>type</td><td>character varying</td><td>Identifies the specific type of task that this is. This is how the system identifies what code to execute when this task is to be run.</td><tr>
<tr class="field"><td>priority</td><td>integer</td><td>An integer where 0 is the highest priority and 10 is the default priority. Other values can be set if desired). Higher priority jobs should be processed earlier.</td><tr>
<tr class="field"><td>obj_id</td><td>integer</td><td>Some tasks are specific to a particular workbook or datasource. In such cases, the object_id is the primary key of the relevant item, in either the workbooks or datasources tables, as indicated by obj_type.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The last time this record was updated.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Some tasks are specific to a particular site.  In such cases, this field links to the relevant site in the sites table.</td><tr>
<tr class="field"><td>obj_type</td><td>character varying</td><td>One of either "Workbook" or "Datasource". Used in conjuction with obj_id, as described there.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>uuid for tasks used in the REST API</td><tr>
<tr class="field"><td>consecutive_failure_count</td><td>integer</td><td>The number of times this task has failed.</td><tr>
<tr class="field"><td>active</td><td>boolean</td><td>If set to false, this means that the task is inactive, implying it won't be run when the schedule triggers</td><tr>
<tr class="field"><td>args</td><td>text</td><td>Used to pass parameters for the task, formatted as yaml.</td><tr>
<tr class="field"><td>title</td><td>text</td><td>Can be used to provide some additional information about the task</td><tr>
<tr class="field"><td>subtitle</td><td>text</td><td>Can be used to provide some additional information about the task</td><tr>
<tr class="field"><td>historical_run_time</td><td>integer</td><td>Stored as the historical run time in seconds for the task, used for sorting background jobs and comparing current run time to the past</td><tr>
<tr class="field"><td>historical_queue_time</td><td>integer</td><td>Stored as the historical queue time in seconds for the task, used for comparing the current queue time to the past</td><tr>
<tr class="field"><td>run_count</td><td>integer</td><td>Number of times this task has run since we created this column. Do not use this value as gospel, as it is will not be accurate for tasks created before this column.</td><tr>
<tr class="field"><td>state</td><td>integer</td><td>One of 3 options for task state: 0 - active, 1 - suspended, 2 - disabled</td><tr>
<tr class="field"><td>last_success_completed_at</td><td>timestamp without time zone</td><td>The last time the task successfully completed.</td><tr>
<tr class="field"><td>creator_id</td><td>integer</td><td>Indicates what user id is the creator of the task</td><tr>
</tbody>
</table>
<a name="tds_datasource_model_fields_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>tds_datasource_model_fields</dfn>:  Fields of datasource models.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from datasource_model_id on this table to id on table, <a href="#tds_datasource_models_anchor">tds_datasource_models</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from content_site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp with time zone</td><td>The timestamp for creating the model.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for updating the model.</td><tr>
<tr class="field"><td>luid</td><td>text</td><td>Internally used LUID for the record.</td><tr>
<tr class="field"><td>content_site_id</td><td>integer</td><td>A foreign key reference to the site to where the datasource exisits.</td><tr>
<tr class="field"><td>qualified_name</td><td>text</td><td>The qualified name of the field, the qualified name is represented in JSON style.</td><tr>
<tr class="field"><td>datasource_model_id</td><td>integer</td><td>A foreign key reference to the tds datasource model to where the field exisits.</td><tr>
<tr class="field"><td>caption</td><td>text</td><td>Friendly name for the data source field that is seen in Tableau.</td><tr>
<tr class="field"><td>is_hidden</td><td>boolean</td><td>Determines if the field is hidden or not.</td><tr>
<tr class="field"><td>is_auto_hidden</td><td>boolean</td><td>The visibility of Autohidden fields are not under user control.</td><tr>
<tr class="field"><td>is_layered</td><td>boolean</td><td>The field is layered on top of a field from a remote data source.</td><tr>
<tr class="field"><td>field_type</td><td>integer</td><td>The type of the field.</td><tr>
<tr class="field"><td>field_role</td><td>integer</td><td>The role of the field.</td><tr>
<tr class="field"><td>folder_name</td><td>text</td><td>The optional folder name if this field is in a folder.</td><tr>
<tr class="field"><td>user_caption</td><td>text</td><td>The optional user generated name for the field.</td><tr>
<tr class="field"><td>server_caption</td><td>text</td><td>The optional caption provided by the server.</td><tr>
<tr class="field"><td>user_description</td><td>text</td><td>The optional user description defined by user, the representation type is JSON.</td><tr>
</tbody>
</table>
<a name="tds_datasource_models_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>tds_datasource_models</dfn>:  Model of the datasource.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from content_datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from content_site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp with time zone</td><td>The timestamp for creating the model.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for updating the model.</td><tr>
<tr class="field"><td>content_site_id</td><td>integer</td><td>A foreign key reference to the site to where the datasource exists.</td><tr>
<tr class="field"><td>content_datasource_id</td><td>integer</td><td>A foreign key reference to the datasource.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>The name of the datasource.</td><tr>
<tr class="field"><td>caption</td><td>text</td><td>The caption of the datasource.</td><tr>
</tbody>
</table>
<a name="trusted_tickets_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>trusted_tickets</dfn>:  This table lists trusted tickets that have been created.  Tickets that are redeemed are deleted once used, hence can only be used once.  Tickets that are never redeemed become invalid after the time given by "expires_at" and are eventually deleted from the table automatically.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>username</td><td>character varying</td><td>The name of the user, under whose authority, the ticket is created. Access to content is provided as if the ticket redeemer were this user.</td><tr>
<tr class="field"><td>ticket</td><td>character varying</td><td>The unique ticket string, i.e. the "value" of the trusted ticket.</td><tr>
<tr class="field"><td>client_ip</td><td>character varying</td><td>If you have configured wgserver.extended_trusted_ip_checking to true, then the IP address of the client that is authorized to redeem the ticket will be recorded here.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created, i.e. the time of creation of the ticket.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>Links to the user that has the given username, and is associated with the current site.</td><tr>
<tr class="field"><td>expires_at</td><td>timestamp without time zone</td><td>Tickets can be redeemed no more than one time, but if it gets any later than this time, then the ticket cannot be redeemed at all. Unless configured differently, this time will be 3 minutes after the ticket is created.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site of the user.</td><tr>
<tr class="field"><td>originating_session_id</td><td>character varying</td><td>The user session which created the ticket. Null if the ticket was not created by an authenticated user.</td><tr>
<tr class="field"><td>guid</td><td>character varying</td><td>Uniquely identifies a trusted ticket when ticket hashing is enabled.</td><tr>
<tr class="field"><td>salt</td><td>character varying</td><td>Combined with ticket to form the hash.</td><tr>
<tr class="field"><td>hashed_ticket</td><td>character varying</td><td>The hash of the salt and the ticket.</td><tr>
</tbody>
</table>
<a name="user_default_customized_views_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>user_default_customized_views</dfn>:  Defines what customized view a user should see for a given view, by default.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from customized_view_id on this table to id on table, <a href="#customized_views_anchor">customized_views</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from view_id on this table to id on table, <a href="#views_anchor">views</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>A foreign key reference to the user.</td><tr>
<tr class="field"><td>view_id</td><td>integer</td><td>A foreign key reference to the view.</td><tr>
<tr class="field"><td>customized_view_id</td><td>integer</td><td>A foreign key reference to the customized view.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this record was last updated.</td><tr>
</tbody>
</table>
<a name="user_images_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>user_images</dfn>:  Represents images for each associated system user.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from system_user_id on this table to id on table, <a href="#system_users_anchor">system_users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>repository_data_id</td><td>bigint</td><td>A reference to an entry in the repository_data table.</td><tr>
<tr class="field"><td>image_id</td><td>character varying</td><td>The id of the image in storage.</td><tr>
<tr class="field"><td>image_type</td><td>character varying</td><td>A string representing the size of the image.</td><tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>The id of the user this image is associated with.</td><tr>
</tbody>
</table>
<a name="user_notification_recipients_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>user_notification_recipients</dfn>:  Holds metadata for all user notification recipients on the server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from notification_luid on this table to luid on table, <a href="#user_notifications_anchor">user_notifications</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the user notification recipient.</td><tr>
<tr class="field"><td>recipient_user_id</td><td>integer</td><td>The identifier for the recipient of the user notification.</td><tr>
<tr class="field"><td>notification_luid</td><td>uuid</td><td>UUID for the notification.</td><tr>
<tr class="field"><td>read_state</td><td>boolean</td><td>True if the notification has been read, false if it is unread.</td><tr>
</tbody>
</table>
<a name="user_notifications_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>user_notifications</dfn>:  Holds metadata for all user notifications on the server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the user notification.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>The identifier for the user notification.</td><tr>
<tr class="field"><td>notification_type</td><td>text</td><td>The type of the user notification.</td><tr>
<tr class="field"><td>event_time</td><td>timestamp without time zone</td><td>The time at which the event that triggered this notification occurred.</td><tr>
<tr class="field"><td>subject_type</td><td>integer</td><td>The subject type of the user notification.</td><tr>
<tr class="field"><td>subject_id</td><td>integer</td><td>The identifier for the subject of the user notification.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The identifier for the site that the user notification belongs to.</td><tr>
<tr class="field"><td>content</td><td>text</td><td>The text content of the user notification.</td><tr>
<tr class="field"><td>sender_user_id</td><td>integer</td><td>The identifier for the (optional) sender of the user notification.</td><tr>
</tbody>
</table>
<a name="user_onboardings_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>user_onboardings</dfn>:  This table stores onboarding information for tableau features based on system user ids</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from system_user_id on this table to id on table, <a href="#system_users_anchor">system_users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>The id of the user this onboarding info is associated with.</td><tr>
<tr class="field"><td>nlp_onboarding_stage</td><td>character varying</td><td>The nlp onboarding stage of this user.</td><tr>
</tbody>
</table>
<a name="user_prefs_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>user_prefs</dfn>:  Contains a variety of preferences for the various system users.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from system_user_id on this table to id on table, <a href="#system_users_anchor">system_users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>Foreign key reference to the system_users table.  This tells us which system user these preferences apply to.</td><tr>
<tr class="field"><td>version</td><td>integer</td><td>Used to indicate how to interpret the prefs information.</td><tr>
<tr class="field"><td>prefs</td><td>bytea</td><td>A serialized object containing the various preferences.</td><tr>
<tr class="field"><td>language_id</td><td>character varying</td><td>A code indicating the desired language for this system_user</td><tr>
<tr class="field"><td>locale_id</td><td>character varying</td><td>A code indicating the locale (country and language) for this system_user.</td><tr>
<tr class="field"><td>start_page</td><td>text</td><td>A relative url of the start page saved by the user.</td><tr>
<tr class="field"><td>suppress_getting_started_notifications</td><td>boolean</td><td>Flag which indicates if user has selected to suppress getting started notifications (used in online case only so far).</td><tr>
<tr class="field"><td>display_mode</td><td>character varying</td><td>A display mode "thumbnail" or "list" that the user last selected for viewing contents.</td><tr>
<tr class="field"><td>local_timezone_offset</td><td>integer</td><td>local user timezone offset (in minutes) from utc from last login location</td><tr>
<tr class="field"><td>local_timezone_name</td><td>character varying</td><td>best guess of local user timezone name from last login location</td><tr>
<tr class="field"><td>lock_version</td><td>integer</td><td>Used to implement "optimistic locking." Don't set this or mess with it, it's all handled automatically.</td><tr>
<tr class="field"><td>is_user_set_timezone</td><td>boolean</td><td>Indicating whether user explicitly set the timezone or inferred by system</td><tr>
<tr class="field"><td>suspended_subscription_notification</td><td>boolean</td><td>Site and System admins only. When true admins receive notification about suspended subscriptions</td><tr>
<tr class="field"><td>suspended_data_alert_notification</td><td>boolean</td><td>Site and System admins only. When true admins receive notification about suspended alerts</td><tr>
<tr class="field"><td>mark_animation_enabled</td><td>boolean</td><td>When true, users will see mark animations on sheets</td><tr>
</tbody>
</table>
<a name="users_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>users</dfn>:  Each record links a system_users record to a site. The user's site specific settings are captured here.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from system_user_id on this table to id on table, <a href="#system_users_anchor">system_users</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>login_at</td><td>timestamp without time zone</td><td>The time of the most recent login for this user.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When the record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When the record was last updated.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>A foreign key reference to the site that the user belongs to.</td><tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>A foreign key reference to the system user that this user is identified with.</td><tr>
<tr class="field"><td>system_admin_auto</td><td>boolean</td><td>A flag indicating if the user is a system_admin that is not explicitly a member of the site.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>An immutable identifier for the record.</td><tr>
<tr class="field"><td>lock_version</td><td>integer</td><td>Used to implement "optimistic locking." Don't set this or mess with it, it's all handled automatically.</td><tr>
<tr class="field"><td>site_role_id</td><td>integer</td><td>The ID of the site role for this user. The mapping is below.
0 = SiteAdministrator
1 = SupportUser
2 = Publisher
3 = Interactor
4 = ViewerWithPublish
5 = Viewer
6 = UnlicensedWithPublish
7 = Guest
8 = Unlicensed
9 = BasicUser</td><tr>
</tbody>
</table>
<a name="value_synonyms_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>value_synonyms</dfn>:  The user defined synonyms associated with values of fields in datasources</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from published_datasource_id on this table to id on table, <a href="#datasources_anchor">datasources</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>The unique identifier for this row that is automatically generated on insert</td><tr>
<tr class="field"><td>created_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was created</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp with time zone</td><td>The timestamp for when this row entry was updated</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site on which the datasource is published</td><tr>
<tr class="field"><td>published_datasource_id</td><td>integer</td><td>The id of the published datasource on the site</td><tr>
<tr class="field"><td>field_graph_id</td><td>text</td><td>The graph id of the field in the datasource</td><tr>
<tr class="field"><td>field_value</td><td>text</td><td>The name of the value in the field</td><tr>
<tr class="field"><td>user_defined_synonyms</td><td>ARRAY</td><td>The user defined synonyms associated with the value</td><tr>
</tbody>
</table>
<a name="view_metrics_aggregations_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>view_metrics_aggregations</dfn>:  Each record represents a partial aggregation of analytics for a given view in a given time interval.  It is often necessary to sum across multiple rows to find a total for a given time interval.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from view_id on this table to id on table, <a href="#views_anchor">views</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>view_id</td><td>integer</td><td>A foreign key reference to the view.</td><tr>
<tr class="field"><td>day_index</td><td>integer</td><td>Records what day of the month the analytics are aggregated over.  When 0, the aggregation is for the month and year as designated by month_index and year_index.</td><tr>
<tr class="field"><td>month_index</td><td>integer</td><td>Records what month of the year the analytics are aggregated over.  When 0, the aggregation is for the year as designated by year_index.</td><tr>
<tr class="field"><td>year_index</td><td>integer</td><td>Records what year the analytics are aggregated over</td><tr>
<tr class="field"><td>view_count</td><td>integer</td><td>Records the number of time a view was viewed in the given time interval.</td><tr>
<tr class="field"><td>device_type</td><td>text</td><td>DSD device type detected (non-null only if view is dashboard in non-authoring mode)</td><tr>
</tbody>
</table>
<a name="views_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>views</dfn>:  Each records represents a view in a workbook.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from owner_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from workbook_id on this table to id on table, <a href="#workbooks_anchor">workbooks</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the view.</td><tr>
<tr class="field"><td>repository_url</td><td>text</td><td>Uniquely identifies a view. More or less composed of workbook and sheet names, but not totally obviously, especially in the presence of non-ASCII characters. Used in URLs meant to access this view.</td><tr>
<tr class="field"><td>description</td><td>text</td><td>Can hold a description of the view, but not normally populated.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>A foreign key reference to the workbook the view is part of.</td><tr>
<tr class="field"><td>index</td><td>integer</td><td>Each view has an index that is unique among views belonging to that workbook.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The last time any changes were made to this record</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>A foreign key reference to the user who owns this view.</td><tr>
<tr class="field"><td>fields</td><td>text</td><td>A list of fields extracted from the workbook's twb file.</td><tr>
<tr class="field"><td>title</td><td>text</td><td>A title for the worksheet extracted from the workbook's twb file.</td><tr>
<tr class="field"><td>caption</td><td>text</td><td>A descriptive phrase constructed for the worksheet, based on the workbook definition.</td><tr>
<tr class="field"><td>sheet_id</td><td>character varying</td><td>An identifier for the sheet. Based on the name of the sheet.</td><tr>
<tr class="field"><td>state</td><td>character varying</td><td>One of either "active" or "disabled".</td><tr>
<tr class="field"><td>sheettype</td><td>character varying</td><td>One of "story" "dashboard" and "view".</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>A foreign key link to the site to which this view belongs.</td><tr>
<tr class="field"><td>first_published_at</td><td>timestamp without time zone</td><td>Records the timestamp for the first time this view was published. This value will not change is the workbook containing this view is later republished.</td><tr>
<tr class="field"><td>revision</td><td>character varying</td><td>Starts with 1.0 and increments by 0.1 with each republication.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>An immutable identifier for the record.</td><tr>
<tr class="field"><td>thumbnail_id</td><td>character varying</td><td>Unique ID used to identify the thumbnail data.</td><tr>
<tr class="field"><td>is_deleted</td><td>boolean</td><td>Whether a view has been soft deleted and is now in the recycle bin</td><tr>
</tbody>
</table>
<a name="views_stats_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>views_stats</dfn>:  This table is used to track how many times each user has accessed different views.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from view_id on this table to id on table, <a href="#views_anchor">views</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>user_id</td><td>integer</td><td>A foreign key reference to a particular user.</td><tr>
<tr class="field"><td>view_id</td><td>integer</td><td>A foreign key reference to the view that was accessed. This field must be populated.</td><tr>
<tr class="field"><td>nviews</td><td>integer</td><td>Keeps a cumulative count of the number of times the view was accessed by this user.</td><tr>
<tr class="field"><td>time</td><td>timestamp without time zone</td><td>The time of the most recent access of the specified view by the specified user.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site to which the view and the user belong.</td><tr>
<tr class="field"><td>device_type</td><td>text</td><td>Device type detected for Device Designer (non-null only if view is dashboard in non-authoring mode)</td><tr>
</tbody>
</table>
<a name="viz_snapshots_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>viz_snapshots</dfn>:  This table represents a snapshots of viz.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from view_id on this table to id on table, <a href="#views_anchor">views</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the viz snapshot.</td><tr>
<tr class="field"><td>view_id</td><td>integer</td><td>Primary key id for view associated with the viz snapshot.</td><tr>
<tr class="field"><td>image_id</td><td>character varying</td><td>Locator for the full image of the viz snapshot.</td><tr>
<tr class="field"><td>thumbnail_id</td><td>character varying</td><td>Locator for the thumbnail image of the viz snapshot.</td><tr>
<tr class="field"><td>data_id</td><td>character varying</td><td>Locator for the data of the viz snapshot.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
<tr class="field"><td>reference_count</td><td>integer</td><td>The number of objects that reference a viz snapshot.</td><tr>
</tbody>
</table>
<a name="viz_states_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>viz_states</dfn>:  This table represents a snapshot of the state of a viz.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from view_id on this table to id on table, <a href="#views_anchor">views</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the viz state entity.</td><tr>
<tr class="field"><td>view_id</td><td>integer</td><td>Foreign key reference to the view associated with this viz state.</td><tr>
<tr class="field"><td>image_id</td><td>character varying</td><td>Locator for the full image of the viz state.</td><tr>
<tr class="field"><td>thumbnail_id</td><td>character varying</td><td>Locator for the thumbnail image of the viz state.</td><tr>
<tr class="field"><td>data_id</td><td>character varying</td><td>A reference to an entry in SOS which references a tcv file of the viz state.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this recorded was created</td><tr>
</tbody>
</table>
<a name="webhooks_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>webhooks</dfn>:  Holds metadata for all registered webhooks on the server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the webhook.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>Identifier for webhook.</td><tr>
<tr class="field"><td>site_luid</td><td>uuid</td><td>The site that the webhook belongs to.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site that the webhook belongs to.</td><tr>
<tr class="field"><td>version</td><td>integer</td><td>The version of this webhook. 1 on create, monotonically increasing with each update of the webhook.</td><tr>
<tr class="field"><td>owner_luid</td><td>uuid</td><td>The user who is the current owner of the webhook.</td><tr>
<tr class="field"><td>url</td><td>text</td><td>The fully specified URL for the webhook to POST to when triggered.</td><tr>
<tr class="field"><td>body_template</td><td>text</td><td>JSON template for the body of the request to send when the webhook is triggered.</td><tr>
<tr class="field"><td>name</td><td>text</td><td>Human readable name for the webhook, defaults to the value Unnamed Webhook.</td><tr>
<tr class="field"><td>event_type</td><td>text</td><td>The type of event on the server that will trigger this webhook e.g datasource refresh.</td><tr>
<tr class="field"><td>isenabled</td><td>boolean</td><td>Whether the webhook is currently run on trigger events</td><tr>
<tr class="field"><td>statuschangereason</td><td>text</td><td>Record the reason for any automated disabling/enabling of a webhook</td><tr>
</tbody>
</table>
<a name="workbook_checksums_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>workbook_checksums</dfn>:  This table provides a set of checksums associated with a workbook which can be used to validate existence of a workbook based on its checksum.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from workbook_id on this table to id on table, <a href="#workbooks_anchor">workbooks</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>Identifies the workbook for which this checksum applies.</td><tr>
<tr class="field"><td>checksum</td><td>character varying</td><td>The computed checksum of the workbook during download.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this checksum entry was created and will be valid only if associated workbook update timestamp is earlier than this.</td><tr>
<tr class="field"><td>expires_at</td><td>timestamp without time zone</td><td>When this checksum entry expires and became eligible for cleanup by background task.</td><tr>
</tbody>
</table>
<a name="workbook_events_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>workbook_events</dfn>:  Used to store workbook events stream.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>bigint</td><td>Primary key for this record.</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>Workbook ID.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site ID.</td><tr>
<tr class="field"><td>event_time</td><td>timestamp without time zone</td><td>Timestamp indicating when the record was inserted.</td><tr>
<tr class="field"><td>event_type</td><td>integer</td><td>Event type to differentiate between insert, update, delete.</td><tr>
</tbody>
</table>
<a name="workbook_exports_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>workbook_exports</dfn>:  Each row in the table corresponds to a cached pdf file.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from generated_as_user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from workbook_id on this table to id on table, <a href="#workbooks_anchor">workbooks</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record.</td><tr>
<tr class="field"><td>language_id</td><td>character varying</td><td>The language ID the pdf was generated with.</td><tr>
<tr class="field"><td>locale_id</td><td>character varying</td><td>The locale ID the pdf was generated with.</td><tr>
<tr class="field"><td>generated_as_user_id</td><td>integer</td><td>The user ID iff the pdf was generated with user references. Otherwise NULL.</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>The workbook id this pdf is generated from.</td><tr>
<tr class="field"><td>generated_at</td><td>timestamp without time zone</td><td>The timestamp at which the pdf was generated.</td><tr>
<tr class="field"><td>freshness_verified_at</td><td>timestamp without time zone</td><td>The timestamp at which the cached file was last verified as fresh.</td><tr>
<tr class="field"><td>data_storage_id</td><td>bigint</td><td>A reference to an entry in the repository_data table, which, in turn references the PostgreSQL large object that contains the sheet image for this entry.</td><tr>
<tr class="field"><td>data_id</td><td>character varying</td><td>Unique ID used to identify the pdf.</td><tr>
<tr class="field"><td>show_commands_query_str</td><td>text</td><td>Represents hash of the possible show commands to be applied to the viz in the native api code.</td><tr>
<tr class="field"><td>page_orientation</td><td>character varying</td><td>PDF page orientation</td><tr>
<tr class="field"><td>page_size_option</td><td>character varying</td><td>PDF page size option</td><tr>
<tr class="field"><td>file_type</td><td>integer</td><td>The file type (PDF = 0, PPT = 1). Enum to be defined in WorkbookExportOptions</td><tr>
</tbody>
</table>
<a name="workbook_versions_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>workbook_versions</dfn>:  Workbook versions saved on server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from workbook_id on this table to id on table, <a href="#workbooks_anchor">workbooks</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The id of a version. Primary key.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Reference to entry in sites table. Indicates the site to which this workbook version belongs to.</td><tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>A foreign key to the workbooks table. Reference to workbook.</td><tr>
<tr class="field"><td>publisher_id</td><td>integer</td><td>Reference to user in site users table. User who published this version. Can point to deleted user.</td><tr>
<tr class="field"><td>version_number</td><td>integer</td><td>The version number.</td><tr>
<tr class="field"><td>published_at</td><td>timestamp without time zone</td><td>The time when this version was initially published. Copied from workbook record last_updated field at the time of being overwritten.</td><tr>
<tr class="field"><td>size</td><td>bigint</td><td>The size, in bytes, of this version of workbook.</td><tr>
<tr class="field"><td>content_key</td><td>character varying</td><td>Key of the workbook as string</td><tr>
<tr class="field"><td>publish_metadata</td><td>text</td><td>Metadata about how this version was published on server, such as visiblity of views.  Metadata is stored as a serialized JSON object.</td><tr>
<tr class="field"><td>sos_type</td><td>character varying</td><td>The SOS data type under which this version document is stored, or null if it is not stored in SOS.</td><tr>
<tr class="field"><td>is_revision_file_reduced</td><td>boolean</td><td>Boolean flag indicating if the stored workbook version has an extract that is not stored in the workbook document, since extracts are not versioned.</td><tr>
</tbody>
</table>
<a name="workbooks_anchor"></a>
<table id="table">
<thead>
<tr class="field"><th colspan="3"><dfn>workbooks</dfn>:  Each record represents a workbook that exists on the server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type</th><th scope="col">Description</th></tr>
</thead>
<tfoot>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from modified_by_user_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from owner_id on this table to id on table, <a href="#users_anchor">users</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from project_id on this table to id on table, <a href="#projects_anchor">projects</a></td></tr>
<tr class="fk"><td colspan="3">Foreign key/Primary key relation from site_id on this table to id on table, <a href="#sites_anchor">sites</a></td></tr>
</tfoot>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The primary key for the record.</td><tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the workbook.</td><tr>
<tr class="field"><td>repository_url</td><td>text</td><td>A unique name for the workbook, derived from the ASCII characters in the name, which can be used in URLs to refer to this workbook.</td><tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td><tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The last time any changes were made to this record.</td><tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>A foreign key reference to the user that owns this workbook.</td><tr>
<tr class="field"><td>project_id</td><td>integer</td><td>A foreign key reference to the project in which this workbook exists.</td><tr>
<tr class="field"><td>view_count</td><td>integer</td><td>Keeps count of the number of views that are associated with this workbook.</td><tr>
<tr class="field"><td>size</td><td>bigint</td><td>The number of bytes used in storing the workbook information.</td><tr>
<tr class="field"><td>embedded</td><td>text</td><td>An encrypted keychain holding any credentials stored with the workbook.</td><tr>
<tr class="field"><td>thumb_user</td><td>integer</td><td>The user to be used when generating the thumbnail image. Null unless specified.</td><tr>
<tr class="field"><td>refreshable_extracts</td><td>boolean</td><td>Whether the extracts in the workbook can be refreshed.</td><tr>
<tr class="field"><td>extracts_refreshed_at</td><td>timestamp without time zone</td><td>The time at which the last extract refresh occurred.</td><tr>
<tr class="field"><td>lock_version</td><td>integer</td><td>Used to implement "optimistic locking." Don't set this or mess with it, it's all handled automatically.</td><tr>
<tr class="field"><td>display_tabs</td><td>boolean</td><td>If true, then the sheets of the workbook are displayed on tabs.</td><tr>
<tr class="field"><td>data_engine_extracts</td><td>boolean</td><td>Indicates if this workbook has associated data engine extracts.</td><tr>
<tr class="field"><td>incrementable_extracts</td><td>boolean</td><td>Indicates if it is possible to perform an incrementable extract refresh for this workbook.</td><tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site to which the workbook was published.</td><tr>
<tr class="field"><td>revision</td><td>character varying</td><td>Starts with 1.0 and increments by 0.1 with each republication.</td><tr>
<tr class="field"><td>first_published_at</td><td>timestamp without time zone</td><td>Records the timestamp for the first time this view was published. This value will not change is the workbook containing this view is later republished.</td><tr>
<tr class="field"><td>extracts_incremented_at</td><td>timestamp without time zone</td><td>The time of the last incremental extract refresh for extracts in this workbook.</td><tr>
<tr class="field"><td>default_view_index</td><td>integer</td><td>Indicates which view will be shown by default.</td><tr>
<tr class="field"><td>luid</td><td>uuid</td><td>An immutable identifier for the record.</td><tr>
<tr class="field"><td>asset_key_id</td><td>integer</td><td>The asset encryption key used to encrypt the keychain in the embedded column.</td><tr>
<tr class="field"><td>document_version</td><td>character varying</td><td>A string that indicates the version of the document description that was used when saving this workbook.</td><tr>
<tr class="field"><td>content_version</td><td>integer</td><td>Version number of the workbook. updated on each publish</td><tr>
<tr class="field"><td>last_published_at</td><td>timestamp without time zone</td><td>Time that the user last published this workbook to server or saved the workbook during web edit. For workbooks that were last published before this column existed, the value will be null.</td><tr>
<tr class="field"><td>data_id</td><td>character varying</td><td>Unique ID used to identify the workbook data.</td><tr>
<tr class="field"><td>reduced_data_id</td><td>character varying</td><td>Unique ID used to identify the reduced workbook data.</td><tr>
<tr class="field"><td>published_all_sheets</td><td>boolean</td><td>True if user previously published all sheets in the workbook, false if they chose to not publish a sheet</td><tr>
<tr class="field"><td>extract_encryption_state</td><td>smallint</td><td>If not null, encryption state of the extracts. null or 0 - unencrypted, 1 - encrypted, 2 - pending encryption, 3 - pending decryption, 5 - pending rekey</td><tr>
<tr class="field"><td>extract_creation_pending</td><td>smallint</td><td>null or 0 - there is not extract creation in progress, 1 - there is an extract creation in progress</td><tr>
<tr class="field"><td>is_deleted</td><td>boolean</td><td>When is_deleted is true then workbook is deleted, no active job or user request can see it. It is considered to reside in Recycle Bin until either restored or permanently deleted.</td><tr>
<tr class="field"><td>parent_workbook_id</td><td>integer</td><td>null - there is no parenet workbook; if not null, it stores the id of the original workbook from which this private workbook is derived</td><tr>
<tr class="field"><td>is_private</td><td>boolean</td><td>null or false - this is not a private workbook, true - this is a private workbook</td><tr>
<tr class="field"><td>modified_by_user_id</td><td>integer</td><td>The user who last modified and published this workbook to server or saved the workbook during web edit. For workbooks that were last published before this column existed, the value will be same as owner_id.</td><tr>
</tbody>
</table>
<a name="_background_tasks_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_background_tasks</dfn>:  This view combines the important contents of both the background_jobs table and the async_jobs table to give an overall picture of jobs that were given to a backgrounder process.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>backgrounder_id</td><td>character varying</td><td>The id of the backgrounder process that did the work.</td></tr>
<tr class="field"><td>id</td><td>integer</td><td>The primary key of either the background_jobs record or the async_jobs record, depending on where this record is coming from.</td></tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td></tr>
<tr class="field"><td>completed_at</td><td>timestamp without time zone</td><td>When the job finished execution. When set, this should generally agree with the updated_at field.</td></tr>
<tr class="field"><td>finish_code</td><td>integer</td><td>Completion status for the job. Will be 0 for success, 1 for failure, and 2 for cancelled.</td></tr>
<tr class="field"><td>job_type</td><td>character varying</td><td>The type of job being run.  This looks a bit odd because it comes from a serialized symbol.</td></tr>
<tr class="field"><td>progress</td><td>integer</td><td>Can be used to indicate percent complete for the job, but in most cases simply gets set to 100 when the job is completed.</td></tr>
<tr class="field"><td>args</td><td>text</td><td>Used as a means of passing parameters about the background job.  This information is stored in a special serialized format, and thus is not easily readable.</td></tr>
<tr class="field"><td>notes</td><td>text</td><td>Can be used to store additional information about the running of the job.</td></tr>
<tr class="field"><td>started_at</td><td>timestamp without time zone</td><td>When the execution of the job was started.  This is not generally the same as created_at, because it may take some time before a backgrounder "notices" the newly created record and begins to process it.</td></tr>
<tr class="field"><td>job_name</td><td>character varying</td><td>A nice readable name for this type of job.</td></tr>
<tr class="field"><td>priority</td><td>integer</td><td>Controls which background_jobs records are processed first.  The highest priority is 0, and the lowest is 100.  Integer values in between are also valid.</td></tr>
<tr class="field"><td>title</td><td>character varying</td><td>Can be used to provide some additional information about the job.</td></tr>
<tr class="field"><td>processed_on_worker</td><td>character varying</td><td>Identifies the machine on which the job is run.</td></tr>
<tr class="field"><td>subtitle</td><td>character varying</td><td>Can be used to provide some additional information about the job.</td></tr>
<tr class="field"><td>language</td><td>character varying</td><td>The language for the job is listed here.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Links to a site, if one is relevant, otherwise it is left NULL.</td></tr>
<tr class="field"><td>locale</td><td>character varying</td><td>The locale for the job is listed here.</td></tr>
<tr class="field"><td>subscriptions_attach_image</td><td>boolean</td><td>Boolean that represents whether to attach images to a subscription background_job. Will be NULL if the background_job is not a subscription.</td></tr>
<tr class="field"><td>subscriptions_attach_pdf</td><td>boolean</td><td>Boolean that represents whether to attach a PDF to a subscription background_job. Will be NULL if the background_job is not a subscription.</td></tr>
</tbody>
</table>
<a name="_comments_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_comments</dfn>:  Comments users made on views.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the underlying comments record.</td></tr>
<tr class="field"><td>title</td><td>text</td><td>Not used.</td></tr>
<tr class="field"><td>comment</td><td>text</td><td>Comment text.</td></tr>
<tr class="field"><td>commentable_type</td><td>character varying</td><td>View.</td></tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>Date when comment was created.</td></tr>
<tr class="field"><td>drawing</td><td>text</td><td>Not used.</td></tr>
<tr class="field"><td>commentable_id</td><td>integer</td><td>Corresponding view id.</td></tr>
<tr class="field"><td>user_id</td><td>integer</td><td>Id of the user who made the comment.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Links to the site that the user and this comment belong to.</td></tr>
</tbody>
</table>
<a name="_customized_views_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_customized_views</dfn>:  When a user creates a customized view, the data that supports that goes in the customized_views table, and is reflected in this view.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>name</td><td>character varying</td><td>A combination of the site name and the customized_view name.</td></tr>
<tr class="field"><td>repository_url</td><td>character varying</td><td>URL text created from workbook, sheet domain, and url_id.</td></tr>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the underlying customized_views record.</td></tr>
<tr class="field"><td>size</td><td>integer</td><td>The number of bytes it took to describe the changes from the base view to the customized view.</td></tr>
<tr class="field"><td>view_name</td><td>character varying</td><td>The name of the view that this customized view is based on.</td></tr>
<tr class="field"><td>sheet_id</td><td>character varying</td><td>An identifier for the sheet.  Based on the name of the sheet.</td></tr>
<tr class="field"><td>workbook_url</td><td>text</td><td>A unique name for the workbook, that contains the base view, derived from the ASCII characters in the name, which can be used in URLs to refer to this workbook.</td></tr>
<tr class="field"><td>workbook_name</td><td>character varying</td><td>The actual name of the workbook, that contains the base view, derived from the ASCII characters in the name, which can be used in URLs to refer to this workbook.</td></tr>
<tr class="field"><td>email</td><td>character varying</td><td>The email of the system_user associated with this customized view.</td></tr>
<tr class="field"><td>user_name</td><td>character varying</td><td>The name of the system_user associated with this customized view.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>A foreign key to the site that this customized view is associated with (the site of the user who created it).</td></tr>
</tbody>
</table>
<a name="_datasources_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_datasources</dfn>:  Shows all Published datasources on server, along with some associated information.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the underlying datasources record.</td></tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the published datasource.</td></tr>
<tr class="field"><td>datasource_url</td><td>text</td><td>Uniquely identifies a datasource.  More or less consists of a slightly modified name, but not totally obviously, especially in the presence of non-ASCII characters.  Used in URLs meant to access this datasource.</td></tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>The user ID of the owner/uploader of the datasource.</td></tr>
<tr class="field"><td>owner_name</td><td>character varying</td><td>The name of the system_user linked to owner_id</td></tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td></tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>When this record was last updated.</td></tr>
<tr class="field"><td>size</td><td>bigint</td><td>The size in bytes of the datasource.</td></tr>
<tr class="field"><td>project_id</td><td>integer</td><td>The associated project ID where the datasource was published.</td></tr>
<tr class="field"><td>project_name</td><td>character varying</td><td>The name of the project linked via project_id.</td></tr>
<tr class="field"><td>server</td><td>text</td><td>DNS server name to connect to (for the associated data_connection record).</td></tr>
<tr class="field"><td>dbclass</td><td>character varying</td><td>Type of data connection (ie mysql, postgres, sqlproxy etc) (for the associated data_connection record).</td></tr>
<tr class="field"><td>port</td><td>integer</td><td>TCP port number of the connect (eg. 5432 for postgres) (for the associated data_connection record).</td></tr>
<tr class="field"><td>username</td><td>text</td><td>Username to use when connecting.</td></tr>
<tr class="field"><td>dbname</td><td>character varying</td><td>The database name associated with the linked data_connection record.</td></tr>
<tr class="field"><td>owner_type</td><td>character varying</td><td>"Datasource"</td></tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>The system_user linked to the user whose id is owner_id.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site that contains this datasource.</td></tr>
<tr class="field"><td>domain_id</td><td>integer</td><td>A foreign key reference to the domain of the owner.</td></tr>
<tr class="field"><td>domain_name</td><td>character varying</td><td>The name is either "local" or the name of some Active Directory group.</td></tr>
</tbody>
</table>
<a name="_datasources_stats_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_datasources_stats</dfn>:  Some historical useage information about datasources.  Based on the records that exist in the historical events tables.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>nviews</td><td>bigint</td><td>The number of times that the datasource has been accessed.</td></tr>
<tr class="field"><td>last_access_time</td><td>timestamp without time zone</td><td>The most recent access of the datasource</td></tr>
<tr class="field"><td>datasource_id</td><td>integer</td><td>Links to the datasource whose usage is being described.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site in which this datasource exists.</td></tr>
</tbody>
</table>
<a name="_groups_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_groups</dfn>:  A grouping of users. Can be locally created or imported from Active Directory.  Reflects the contents of the groups table and associated tables.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The primary key of the underlying groups record.</td></tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name that was given to the group.</td></tr>
<tr class="field"><td>site_name</td><td>character varying</td><td>The name of the site that this group belongs in.</td></tr>
<tr class="field"><td>domain_name</td><td>character varying</td><td>The name of the domain that this group is linked to.</td></tr>
<tr class="field"><td>domain_short_name</td><td>character varying</td><td>A short version of the domain that this group is linked to.</td></tr>
<tr class="field"><td>domain_family</td><td>character varying</td><td>Either local or ActiveDirectory.</td></tr>
</tbody>
</table>
<a name="_http_requests_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_http_requests</dfn>:  Each record represents a request received by Tableau Server.  Reflects data in the http_requests table.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>controller</td><td>character varying</td><td>The part of the application that received the request.</td></tr>
<tr class="field"><td>action</td><td>character varying</td><td>The action requested.</td></tr>
<tr class="field"><td>http_referer</td><td>character varying</td><td>The referrer.</td></tr>
<tr class="field"><td>http_user_agent</td><td>character varying</td><td>The agent string supplied by the client.</td></tr>
<tr class="field"><td>http_request_uri</td><td>text</td><td>The requested URI.</td></tr>
<tr class="field"><td>remote_ip</td><td>character varying</td><td>The client's IP address (from the perspective of the server).</td></tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>When this record was created.</td></tr>
<tr class="field"><td>session_id</td><td>character varying</td><td>The session with which the request is associated.</td></tr>
<tr class="field"><td>completed_at</td><td>timestamp without time zone</td><td>When the request was completed.</td></tr>
<tr class="field"><td>port</td><td>integer</td><td>The port on which the request was received.</td></tr>
<tr class="field"><td>user_id</td><td>integer</td><td>The user associated with the request.</td></tr>
<tr class="field"><td>worker</td><td>character varying</td><td>Which worker machine received the request.</td></tr>
<tr class="field"><td>vizql_session</td><td>text</td><td>The vizql session associated with this request.</td></tr>
<tr class="field"><td>user_ip</td><td>character varying</td><td>The IP address of the originator of the request.</td></tr>
<tr class="field"><td>currentsheet</td><td>character varying</td><td>Which sheet was being viewed.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site associated with the request.</td></tr>
</tbody>
</table>
<a name="_projects_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_projects</dfn>:  Each row of the table corresponds to a project on Tableau Server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the underlying record in the projects table.</td></tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the project.</td></tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td></tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>The id of the user who owns this project.</td></tr>
<tr class="field"><td>owner_name</td><td>character varying</td><td>The name of the system_user who owns this project.</td></tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>The id of the system_user who owns this project.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Refers to the site which contains this project.</td></tr>
</tbody>
</table>
<a name="_schedules_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_schedules</dfn>:  Records define a schedule according to which certain regular tasks may be performed (see tasks table). They also indicate the next time at which the schedule will be triggered.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the record in the underlying schedules table.</td></tr>
<tr class="field"><td>name</td><td>character varying</td><td>A schedule can be given a name, which is stored here.</td></tr>
<tr class="field"><td>active</td><td>boolean</td><td>If set to false, this means that the schedule is inactive, meaning that no tasks will be performed when the schedules triggers.</td></tr>
<tr class="field"><td>priority</td><td>integer</td><td>Priority can range from 1 to 100, with lower values corresponding to higher priority.</td></tr>
<tr class="field"><td>schedule_type</td><td>integer</td><td>One of 0 (Hourly), 1 (Daily), 2 (Weekly), 3 (Monthly).</td></tr>
<tr class="field"><td>day_of_week_mask</td><td>integer</td><td>Indicates which day of the week this schedule will run.  The information is encoded in the given integer.  To interpret it, convert the integer to binary.  The days of the week correspond to Sunday : 1, Monday : 10, Tuesday : 100, Wednesday : 1000, Thursday : 10000, Friday : 100000, Saturday : 1000000.</td></tr>
<tr class="field"><td>day_of_month_mask</td><td>integer</td><td>Indicates which day of the month this schedule will run.  The information is encoded in the given integer.  To interpret it, convert the integer to binary.  The days of the month correspond to 1st : 1, 2nd: 10, 3rd: 100, 4th: 1000, 5th: 10000, etc.</td></tr>
<tr class="field"><td>start_at_minute</td><td>integer</td><td>The minute following the start of the designated time period implied by the schedule_type.  For example, for a daily schedule, this would be number of minutes past midnight at the start of the day.  For hourly, it would be the number of minutes past the beginning of the hour.</td></tr>
<tr class="field"><td>minute_interval</td><td>integer</td><td>Once the schedule triggers, it will retrigger at this interval during the time period implied by the schedule_type or until end_at_minute, or end_schedule_at.</td></tr>
<tr class="field"><td>end_at_minute</td><td>integer</td><td>The minute following the start of the designated time period implied schedule_type, at which the schedule should stop triggering.</td></tr>
<tr class="field"><td>end_schedule_at</td><td>timestamp without time zone</td><td>Used to indicate a point in time, after which the schedule should never trigger.</td></tr>
<tr class="field"><td>run_next_at</td><td>timestamp without time zone</td><td>When the schedule will next trigger.</td></tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which this record was created.</td></tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The last time any changes were made to this record.</td></tr>
<tr class="field"><td>hidden</td><td>boolean</td><td>If set to true, then this schedule will not be listed in the GUI, otherwise it will be.</td></tr>
<tr class="field"><td>serial_collection_id</td><td>integer</td><td>A foreign key to the serial_collections table.  Two jobs with the same serial_collection_id cannot be processed simultaneously.  When the job record for a task linked to this schedule is created, it is assigned this serial_collection_id.</td></tr>
<tr class="field"><td>lock_version</td><td>integer</td><td>Used to implement "optimistic locking" by JPA/Hibernate.  The counter increases each time the record is changed.  Not useful for customers.</td></tr>
<tr class="field"><td>scheduled_action</td><td>integer</td><td>Used to classify schedules into one of two categories: 0 (Extract related) 1 (Subscription related)</td></tr>
<tr class="field"><td>scheduled_action_type</td><td>text</td><td>A friendly string representation of the type of scheduled action.</td></tr>
<tr class="field"><td>defined_by</td><td>integer</td><td>The mechanism type of how the schedule is created, e.g. 0 for system_admin, 1 for self_service.</td></tr>
</tbody>
</table>
<a name="_sessions_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_sessions</dfn>:  Settings associated with a user's browser session.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>session_id</td><td>character varying</td><td>Session identifier.</td></tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>Time when session was last updated, used to expire inactive sessions.</td></tr>
<tr class="field"><td>user_id</td><td>integer</td><td>Foreign key to users table.  Tells the user whose session this is.</td></tr>
<tr class="field"><td>user_name</td><td>character varying</td><td>The name of the system_user linked to the user whose session this is.</td></tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>The id of the system_user linked to the user whose session this is.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site that this session belongs to.</td></tr>
</tbody>
</table>
<a name="_sites_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_sites</dfn>:  Each record represents a site. Each site holds its own workbooks, datasources, users, etc.  Strict isolation between the contents of each site is maintained.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the underlying sites record.</td></tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the site.</td></tr>
<tr class="field"><td>url_namespace</td><td>character varying</td><td>String used in the construction of URLs that target this site.</td></tr>
<tr class="field"><td>status</td><td>character varying</td><td>One of "active" "suspended" or "locked".</td></tr>
</tbody>
</table>
<a name="_subscriptions_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_subscriptions</dfn>:  Each record provides information about subscriptions that are scheduled.  Subscriptions are a mechanism for receiving specified content by email on some schedule.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the underlying subscriptions record.</td></tr>
<tr class="field"><td>subject</td><td>character varying</td><td>A string that describes the nature of the subscription.</td></tr>
<tr class="field"><td>content_type</td><td>text</td><td>Describes what type of content is being delivered by this subscription. One of: "Customized View - Single View", "Workbook", "Single View", or "Customized View - Workbook".</td></tr>
<tr class="field"><td>view_url</td><td>text</td><td>A URL string that describes the view to be delivered, when the subscription is for a view.</td></tr>
<tr class="field"><td>workbook_url</td><td>text</td><td>A URL string that describes the workbook to be delivered, when the subscription is for a workbook.</td></tr>
<tr class="field"><td>customized_view_id</td><td>integer</td><td>A foreign key reference to the customized view, if the subscription is for a customized view.</td></tr>
<tr class="field"><td>last_sent</td><td>timestamp without time zone</td><td>The last time at which the the subscription was sent.</td></tr>
<tr class="field"><td>user_id</td><td>integer</td><td>A foreign key reference to the user who will receive the subscription.</td></tr>
<tr class="field"><td>user_name</td><td>character varying</td><td>The name of the system_user who will receive the subscription.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site that the subscription (and the user) belongs to.</td></tr>
<tr class="field"><td>site_name</td><td>character varying</td><td>The name of the site that the subscription (and the user) belongs to.</td></tr>
<tr class="field"><td>schedule_name</td><td>character varying</td><td>The name of the schedule that this subscription runs under.</td></tr>
<tr class="field"><td>schedule_active</td><td>boolean</td><td>If set to false, this means that the subscription is inactive.</td></tr>
<tr class="field"><td>schedule_run_next_at</td><td>timestamp without time zone</td><td>The next time the subscription should be sent.</td></tr>
<tr class="field"><td>schedule_priority</td><td>integer</td><td>Priority can range from 1 to 100, with lower values corresponding to higher priority.</td></tr>
</tbody>
</table>
<a name="_system_users_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_system_users</dfn>:  Each record represents a user of the server. These records correspond to login identity. A single system_user may potentially be able to login to multiple sites. The linkage between a system_user and their allowed sites is defined through the "users" table.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the underlying system_user record.</td></tr>
<tr class="field"><td>name</td><td>character varying</td><td>The username of the user.</td></tr>
<tr class="field"><td>email</td><td>character varying</td><td>The email of the user.</td></tr>
<tr class="field"><td>friendly_name</td><td>character varying</td><td>A friendly name that might be used in the GUI to refer to the user.</td></tr>
<tr class="field"><td>custom_display_name</td><td>boolean</td><td>If set to true, this prevents the friendly_name from potentially being overwritten by Active Airectory information when the user is read in from Active Directory.  Seldom done.</td></tr>
<tr class="field"><td>admin_level</td><td>integer</td><td>Indicates if the user is a system administrator. 10 : system admin, 0 : not a system admin</td></tr>
<tr class="field"><td>domain_name</td><td>character varying</td><td>The name of the domain that the user belongs to. The name is either "local" or the name of some Active Directory group.</td></tr>
<tr class="field"><td>domain_short_name</td><td>character varying</td><td>An alternate shorter form of the name</td></tr>
<tr class="field"><td>domain_family</td><td>character varying</td><td>Either local or ActiveDirectory.</td></tr>
</tbody>
</table>
<a name="_tags_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_tags</dfn>:  Each tag is a string value. A given tag can be associated with many taggable items in a site.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>tag_id</td><td>integer</td><td>The primary key for the underlying tags table.</td></tr>
<tr class="field"><td>tag_name</td><td>character varying</td><td>The value of the tag.</td></tr>
<tr class="field"><td>object_type</td><td>character varying</td><td>The type of the taggable item - this is used to identify which table to join to.</td></tr>
<tr class="field"><td>taggable_id</td><td>integer</td><td>The ID of the taggable item.</td></tr>
<tr class="field"><td>object_id</td><td>integer</td><td>The same as taggable_id.</td></tr>
<tr class="field"><td>object_name</td><td>character varying</td><td>The name of the view, workbook, or datasource that is being tagged.</td></tr>
<tr class="field"><td>user_id</td><td>integer</td><td>The ID of the user that owns the tagging.</td></tr>
<tr class="field"><td>user_name</td><td>character varying</td><td>The name of the system_user that owns the tagging.</td></tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>The id of the system_user that owns the tagging.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The site in which the tagged object exists (likewise the user, etc.).</td></tr>
</tbody>
</table>
<a name="_users_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_users</dfn>:  Information relating to users.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the underlying user record.</td></tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the system_user linked to the user record.</td></tr>
<tr class="field"><td>login_at</td><td>timestamp without time zone</td><td>The time of the most recent login for this user.</td></tr>
<tr class="field"><td>friendly_name</td><td>character varying</td><td>The friendly name of the system_user linked to the user record.</td></tr>
<tr class="field"><td>licensing_role_id</td><td>integer</td><td>Foreign key reference to the licensing_roles table. Indicates the licensing role that is assigned to this user.</td></tr>
<tr class="field"><td>licensing_role_name</td><td>character varying</td><td>The name of the licensing role that is assigned to this user.</td></tr>
<tr class="field"><td>domain_id</td><td>integer</td><td>The domain_id of the system_user linked to the user record.</td></tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>The id of the system_user linked to the user record.</td></tr>
<tr class="field"><td>domain_name</td><td>character varying</td><td>The domain_name of the system_user linked to the user record.</td></tr>
<tr class="field"><td>domain_short_name</td><td>character varying</td><td>The a shorter version of the domain_name of the system_user linked to the user record.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>The id of the site that the user belongs to.</td></tr>
</tbody>
</table>
<a name="_views_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_views</dfn>:  Each records represents a view in a workbook.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>Primary key for the underlying views record.</td></tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the view.</td></tr>
<tr class="field"><td>view_url</td><td>text</td><td>Uniquely identifies a view.  More or less composed of workbook and sheet names, but not totally obviously, especially in the presence of non-ASCII characters.  Used in URLs meant to access this view.</td></tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which the underlying views record was created.</td></tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>A foreign key reference to the user who owns this view.</td></tr>
<tr class="field"><td>owner_name</td><td>character varying</td><td>The name of the user who owns this view.</td></tr>
<tr class="field"><td>workbook_id</td><td>integer</td><td>A foreign key reference to the workbook the view is part of.</td></tr>
<tr class="field"><td>index</td><td>integer</td><td>Each view has an index that is unique among views belonging to that workbook.</td></tr>
<tr class="field"><td>title</td><td>text</td><td>A title for the worksheet extracted from the workbook's twb file.</td></tr>
<tr class="field"><td>caption</td><td>text</td><td>A descriptive phrase constructed for the worksheet, based on the workbook definition.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>A foreign key link to the site to which this view belongs.</td></tr>
</tbody>
</table>
<a name="_views_stats_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_views_stats</dfn>:  Used to track how many times each user has accessed different views.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>users_id</td><td>integer</td><td>A foreign key reference to a particular user.</td></tr>
<tr class="field"><td>system_users_name</td><td>character varying</td><td>The name of the system_user that corresponds to the user.</td></tr>
<tr class="field"><td>users_login_at</td><td>timestamp without time zone</td><td>The time of the most recent login for this user.</td></tr>
<tr class="field"><td>system_users_friendly_name</td><td>character varying</td><td>The friendly_name of the system_user that corresponds to the user.</td></tr>
<tr class="field"><td>views_id</td><td>integer</td><td>A foreign key reference to the view that was accessed. This field must be populated.</td></tr>
<tr class="field"><td>system_users_id</td><td>integer</td><td>The id of the system_user that corresponds to the user.</td></tr>
<tr class="field"><td>views_name</td><td>character varying</td><td>The name of the view that was accessed.</td></tr>
<tr class="field"><td>views_url</td><td>text</td><td>Uniquely identifies a view.  More or less composed of workbook and sheet names, but not totally obviously, especially in the presence of non-ASCII characters.  Used in URLs meant to access this view.</td></tr>
<tr class="field"><td>views_workbook_id</td><td>integer</td><td>A foreign key reference to the workbook the view is part of.</td></tr>
<tr class="field"><td>views_created_at</td><td>timestamp without time zone</td><td>The time at which the view was created.</td></tr>
<tr class="field"><td>views_owner_id</td><td>integer</td><td>A foreign key reference to the user who owns the view.</td></tr>
<tr class="field"><td>views_index</td><td>integer</td><td>Each view has an index that is unique among views belonging to that workbook.</td></tr>
<tr class="field"><td>views_title</td><td>text</td><td>A title for the worksheet extracted from the workbook's twb file.</td></tr>
<tr class="field"><td>views_caption</td><td>text</td><td>A descriptive phrase constructed for the worksheet, based on the workbook definition.</td></tr>
<tr class="field"><td>device_type</td><td>text</td><td>DSD device type detected (non-null only if view is dashboard in non-authoring mode)</td></tr>
<tr class="field"><td>nviews</td><td>integer</td><td>Keeps a cumulative count of the number of times the view was accessed by this user.</td></tr>
<tr class="field"><td>last_view_time</td><td>timestamp without time zone</td><td>The time of the most recent access of the specified view by the specified user.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Links to the site that contains the view.</td></tr>
</tbody>
</table>
<a name="_workbooks_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>_workbooks</dfn>:  Each record represents a workbook that exists on the server.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>id</td><td>integer</td><td>The primary key for the underlying workbook record.</td></tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the workbook.</td></tr>
<tr class="field"><td>workbook_url</td><td>text</td><td>A unique name for the workbook, derived from the ASCII characters in the name, which can be used in URLs to refer to this workbook.</td></tr>
<tr class="field"><td>created_at</td><td>timestamp without time zone</td><td>The time at which the workbook record was created.</td></tr>
<tr class="field"><td>updated_at</td><td>timestamp without time zone</td><td>The last time any changes were made to this workbook record.</td></tr>
<tr class="field"><td>owner_id</td><td>integer</td><td>A foreign key reference to the user that owns this workbook.</td></tr>
<tr class="field"><td>project_id</td><td>integer</td><td>A foreign key reference to the project in which this workbook exists.</td></tr>
<tr class="field"><td>size</td><td>bigint</td><td>The number of bytes used in storing the workbook information.</td></tr>
<tr class="field"><td>view_count</td><td>integer</td><td>Keeps count of the number of views that are associated with this workbook.</td></tr>
<tr class="field"><td>owner_name</td><td>character varying</td><td>The name of the system_user who is the owner.</td></tr>
<tr class="field"><td>project_name</td><td>character varying</td><td>The name of the project that this workbook is part of.</td></tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>The id of the system_user who is the owner.</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Links to the site that contains this workbook.</td></tr>
<tr class="field"><td>domain_id</td><td>integer</td><td>A foreign key reference to the domain of the owner.</td></tr>
<tr class="field"><td>domain_name</td><td>character varying</td><td>The name is either "local" or the name of some Active Directory group.</td></tr>
</tbody>
</table>
<a name="identity_based_activation_admin_view_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>identity_based_activation_admin_view</dfn>:  Login-based License Management (LBLM) -  Database view to faciliate Admin Server and Site Views for Login-based License Usage Reporting.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>iba_user_id</td><td>character varying</td><td>Generated Id for user for IBA Reporting</td></tr>
<tr class="field"><td>site_id</td><td>integer</td><td>Site being used.</td></tr>
<tr class="field"><td>device_fingerprint</td><td>character varying</td><td>Uniquely identifies device. Built/generated from umn.</td></tr>
<tr class="field"><td>product_type</td><td>character varying</td><td>Product being used at the client level.</td></tr>
<tr class="field"><td>user_role</td><td>character varying</td><td>Values: CREATOR, SITE_ADMINISTRATOR, SERVER_ADMINISTRATOR</td></tr>
<tr class="field"><td>host_name</td><td>character varying</td><td>Computer host name.</td></tr>
<tr class="field"><td>product_version</td><td>character varying</td><td>application/product version being used at the client level.</td></tr>
<tr class="field"><td>registration_first_name</td><td>character varying</td><td>Registered user first name</td></tr>
<tr class="field"><td>registration_last_name</td><td>character varying</td><td>Registered user last name</td></tr>
<tr class="field"><td>registration_email</td><td>character varying</td><td>Registered user email address</td></tr>
<tr class="field"><td>registration_date</td><td>timestamp without time zone</td><td>Date active key was registered.</td></tr>
<tr class="field"><td>client_user_name</td><td>character varying</td><td>Login/User name from the client level.</td></tr>
<tr class="field"><td>atr_expiration_date</td><td>timestamp without time zone</td><td>Expiration date of active key. NULL means permanent.</td></tr>
<tr class="field"><td>hardware_serial_number</td><td>character varying</td><td>Uniquely identifies company's hardware asset.</td></tr>
<tr class="field"><td>registration_custom_field</td><td>character varying</td><td>custom field from registration</td></tr>
<tr class="field"><td>machine_os</td><td>character varying</td><td>os_architecture</td></tr>
<tr class="field"><td>virtual_machine</td><td>boolean</td><td>is the machine virtual</td></tr>
<tr class="field"><td>atr_chain_id</td><td>character varying</td><td>ATR Chain Id</td></tr>
<tr class="field"><td>domain_information</td><td>character varying</td><td>Computer Active Directory domain.</td></tr>
<tr class="field"><td>date_atr_issued</td><td>timestamp without time zone</td><td>date-time when the ATR successfully returned from the server for this user, device, product and site.</td></tr>
<tr class="field"><td>date_atr_failed</td><td>timestamp without time zone</td><td>date-time when the ATR successfully returned from the server for this user, device, product and site.</td></tr>
<tr class="field"><td>date_last_updated</td><td>timestamp without time zone</td><td>date-time the last time this row was updated in any way for a given user, productType, device and site.</td></tr>
<tr class="field"><td>server_user_name</td><td>character varying</td><td>User friendly name on the server level.</td></tr>
<tr class="field"><td>server_email</td><td>character varying</td><td>Email for user on the server level.</td></tr>
<tr class="field"><td>site_luid</td><td>character varying</td><td>LUID from sites table.</td></tr>
<tr class="field"><td>date_activated</td><td>timestamp without time zone</td><td>date-time when the user activated this product from this device for this site for the first time.</td></tr>
<tr class="field"><td>date_last_used</td><td>timestamp without time zone</td><td>date-time the last time the user used this product from this device for this site.</td></tr>
<tr class="field"><td>date_creator_role_assigned</td><td>timestamp without time zone</td><td>Datetime user was assigned a creator role. Triggered by site role change in the users table.</td></tr>
<tr class="field"><td>date_creator_role_unassigned</td><td>timestamp without time zone</td><td>Datetime user was unassigned a creator role. Triggered by site role change in the users table.</td></tr>
<tr class="field"><td>site_name</td><td>character varying</td><td>The name of the site sourced from the name column in the sites table.</td></tr>
</tbody>
</table>
<a name="users_view_anchor"></a>
<table id="table" summary="Some database table">
<thead>
<tr class="field"><th colspan="3"><dfn>users_view</dfn>:  Each record corresponds to a user on the system.  The data presented is a combination of user data and data from the linked system_user.</th></tr>
<tr class="field"><th scope="col">Name</th><th scope="col">Type<th scope="col">Description</th><tr>
</thead>
<tbody>
<tr class="field"><td>email</td><td>character varying</td><td>The email of the system_user.</td></tr>
<tr class="field"><td>login_at</td><td>timestamp without time zone</td><td>The last time the system_user logged in.</td></tr>
<tr class="field"><td>name</td><td>character varying</td><td>The name of the system_user.</td></tr>
<tr class="field"><td>id</td><td>integer</td><td>The id of the underlying users record.</td></tr>
<tr class="field"><td>system_user_id</td><td>integer</td><td>The id of the linked system_users record.</td></tr>
</tbody>
</table>

            </body>
          </html>
          
